mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
Fixed help
This commit is contained in:
parent
632f745578
commit
8993a702fe
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ impl<'w> Help<'w> {
|
|||
debugln!("Help::val: arg={}", arg.name);
|
||||
let mult =
|
||||
arg.is_set(ArgSettings::MultipleValues) || arg.is_set(ArgSettings::MultipleOccurrences);
|
||||
if arg.is_set(ArgSettings::TakesValue) {
|
||||
if arg.is_set(ArgSettings::TakesValue) || arg.index.is_some() {
|
||||
let delim = if arg.is_set(ArgSettings::RequireDelimiter) {
|
||||
arg.val_delim.expect(INTERNAL_ERROR_MSG)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue