fix: grammar error in some conflicting option errors

This commit is contained in:
Georg Brandl 2015-10-04 10:43:59 +02:00
parent 0fbd4575a3
commit e73b07e194
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -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)),