diff --git a/clap-tests/run_tests.py b/clap-tests/run_tests.py index 921eacdd..ae913a9a 100755 --- a/clap-tests/run_tests.py +++ b/clap-tests/run_tests.py @@ -73,7 +73,7 @@ USAGE: For more information try --help''' -_excluded_l = '''error: The argument '-f' cannot be used '-F' +_excluded_l = '''error: The argument '-f' cannot be used with '-F' USAGE: claptests [positional2] -F --long-option-2 diff --git a/src/app/app.rs b/src/app/app.rs index 579347e0..17ab16cb 100644 --- a/src/app/app.rs +++ b/src/app/app.rs @@ -3306,7 +3306,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{ // Ensure this flag isn't on the mutually excludes list if self.blacklist.contains(&v.name) { matches.args.remove(v.name); - return Err(self.report_error(format!("The argument '{}' cannot be used {}", + return Err(self.report_error(format!("The argument '{}' cannot be used with {}", Format::Warning(format!("-{}", arg)), match self.blacklisted_from(v.name, matches) { Some(name) => format!("'{}'", Format::Warning(name)),