mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
fix: fixes help output tests
This commit is contained in:
parent
e1371ad15c
commit
49defad11b
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ impl<'a, 'b, 'c, 'z> Usage<'a, 'b, 'c, 'z> {
|
|||
.unwrap_or_else(|| self.p.app.bin_name.as_ref().unwrap_or(&self.p.app.name));
|
||||
usage.push_str(&*name);
|
||||
let req_string = if incl_reqs {
|
||||
self.get_required_usage_from(&[], None, true)
|
||||
self.get_required_usage_from(&[], None, false)
|
||||
.iter()
|
||||
.fold(String::new(), |a, s| a + &format!(" {}", s)[..])
|
||||
} else {
|
||||
|
|
|
@ -1397,7 +1397,7 @@ Will M.
|
|||
does stuff
|
||||
|
||||
USAGE:
|
||||
test [OPTIONS] --birthday-song <song> --fake <some>:<val>
|
||||
test [OPTIONS] --fake <some>:<val> --birthday-song <song>
|
||||
|
||||
FLAGS:
|
||||
-h, --help Prints help information
|
||||
|
|
Loading…
Reference in a new issue