mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 13:52:34 +00:00
fix(derive): Make Option<Option<T>>
work per occurrence
This commit is contained in:
parent
ab8ef46663
commit
cf8e1fc319
1 changed files with 1 additions and 2 deletions
|
@ -258,8 +258,7 @@ pub fn gen_augment(
|
|||
|
||||
Ty::OptionOption => quote_spanned! { ty.span()=>
|
||||
.value_name(#value_name)
|
||||
.min_values(0)
|
||||
.max_values(1)
|
||||
.number_of_values(0..=1)
|
||||
#value_parser
|
||||
#action
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue