mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
Re-enable conflict_output and conflict_output_rev
This commit is contained in:
parent
ddd55e57dc
commit
fbb7a0f6e4
1 changed files with 6 additions and 6 deletions
|
@ -2,14 +2,14 @@ mod utils;
|
|||
|
||||
use clap::{App, Arg, ArgGroup, ErrorKind};
|
||||
|
||||
static CONFLICT_ERR: &str = "error: The argument '-F' cannot be used with '--flag'
|
||||
static CONFLICT_ERR: &str = "error: The argument '--flag' cannot be used with '-F'
|
||||
|
||||
USAGE:
|
||||
clap-test <positional> <positional2> --flag --long-option-2 <option2>
|
||||
|
||||
For more information try --help";
|
||||
|
||||
static CONFLICT_ERR_REV: &str = "error: The argument '--flag' cannot be used with '-F'
|
||||
static CONFLICT_ERR_REV: &str = "error: The argument '-F' cannot be used with '--flag'
|
||||
|
||||
USAGE:
|
||||
clap-test <positional> <positional2> -F --long-option-2 <option2>
|
||||
|
@ -88,22 +88,22 @@ fn group_conflict_2() {
|
|||
|
||||
#[test]
|
||||
fn conflict_output() {
|
||||
utils::compare_output(
|
||||
assert!(utils::compare_output(
|
||||
utils::complex_app(),
|
||||
"clap-test val1 --flag --long-option-2 val2 -F",
|
||||
CONFLICT_ERR,
|
||||
true,
|
||||
);
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn conflict_output_rev() {
|
||||
utils::compare_output(
|
||||
assert!(utils::compare_output(
|
||||
utils::complex_app(),
|
||||
"clap-test val1 -F --long-option-2 val2 --flag",
|
||||
CONFLICT_ERR_REV,
|
||||
true,
|
||||
);
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Reference in a new issue