mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
commit
10c7228b3f
1 changed files with 2 additions and 3 deletions
|
@ -863,8 +863,6 @@ impl<'help, 'app> Parser<'help, 'app> {
|
||||||
it: &mut Input,
|
it: &mut Input,
|
||||||
keep_state: bool,
|
keep_state: bool,
|
||||||
) -> ClapResult<()> {
|
) -> ClapResult<()> {
|
||||||
use std::fmt::Write;
|
|
||||||
|
|
||||||
debug!("Parser::parse_subcommand");
|
debug!("Parser::parse_subcommand");
|
||||||
|
|
||||||
let mut mid_string = String::from(" ");
|
let mut mid_string = String::from(" ");
|
||||||
|
@ -873,7 +871,8 @@ impl<'help, 'app> Parser<'help, 'app> {
|
||||||
let reqs = Usage::new(self).get_required_usage_from(&[], None, true); // maybe Some(m)
|
let reqs = Usage::new(self).get_required_usage_from(&[], None, true); // maybe Some(m)
|
||||||
|
|
||||||
for s in &reqs {
|
for s in &reqs {
|
||||||
write!(&mut mid_string, "{} ", s).expect(INTERNAL_ERROR_MSG);
|
mid_string.push_str(s);
|
||||||
|
mid_string.push(' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue