diff --git a/clap_derive/examples/value_hints_derive.rs b/clap_derive/examples/value_hints_derive.rs index d0be2c00..4815ecad 100644 --- a/clap_derive/examples/value_hints_derive.rs +++ b/clap_derive/examples/value_hints_derive.rs @@ -34,7 +34,6 @@ enum GeneratorChoice { name = "value_hints_derive", // AppSettings::TrailingVarArg is required to use ValueHint::CommandWithArguments setting = AppSettings::TrailingVarArg, - setting = AppSettings::DisableVersionFlag )] struct Opt { /// If provided, outputs the completion file for given shell diff --git a/clap_generate/examples/value_hints.rs b/clap_generate/examples/value_hints.rs index 43113883..a3fdba64 100644 --- a/clap_generate/examples/value_hints.rs +++ b/clap_generate/examples/value_hints.rs @@ -19,7 +19,6 @@ use std::io; fn build_cli() -> App<'static> { App::new("value_hints") - .setting(AppSettings::DisableVersionFlag) // AppSettings::TrailingVarArg is required to use ValueHint::CommandWithArguments .setting(AppSettings::TrailingVarArg) .arg(Arg::new("generator").long("generate").possible_values([