Allow arguments to override themselves
commit36d7250af2f27d67ebdb9a195acbb894206831b4
authorsharkdp <davidpeter@web.de>
dateThu 24 May 2018, 19:52 (8 years ago)
parent2ce8655
src/app.rs+1
@@ -40,6 +40,7 @@ impl App {
4040 .global_setting(AppSettings::DeriveDisplayOrder)
4141 .global_setting(AppSettings::UnifiedHelpMessage)
4242 .global_setting(AppSettings::NextLineHelp)
43+ .global_setting(AppSettings::AllArgsOverrideSelf)
4344 .setting(AppSettings::InferSubcommands)
4445 .setting(AppSettings::ArgsNegateSubcommands)
4546 .setting(AppSettings::DisableHelpSubcommand)