Auto merge of #306 - birkenfeld:master, r=Vinatorul

fix: grammar error in some conflicting option errors
This commit is contained in:
Homu 2015-10-04 17:47:22 +09:00
commit 32d37f1b80
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)),