Skip to content

Commit

Permalink
test(error): Self-conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 29, 2022
1 parent 337a9e0 commit 2c09781
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/builder/conflicts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,20 @@ For more information try '--help'
);
}

#[test]
#[cfg(feature = "error-context")]
fn conflict_output_repeat() {
static ERR: &str = "\
error: The argument '-F' cannot be used with '-F'
Usage: clap-test [OPTIONS] [positional] [positional2] [positional3]... [COMMAND]
For more information try '--help'
";

utils::assert_output(utils::complex_app(), "clap-test -F -F", ERR, true);
}

#[test]
#[cfg(feature = "error-context")]
fn conflict_output_with_required() {
Expand Down

0 comments on commit 2c09781

Please sign in to comment.