mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
fix: grammar error in some conflicting option errors
This commit is contained in:
parent
0fbd4575a3
commit
e73b07e194
2 changed files with 2 additions and 2 deletions
|
@ -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 <option2>
|
||||
|
|
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue