tests(Examples): fixes examples for no-auto generated version

This commit is contained in:
Kevin K 2021-10-08 13:04:24 -04:00
parent 7169c47fed
commit 0addd938a6
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A
2 changed files with 0 additions and 2 deletions

View file

@ -34,7 +34,6 @@ enum GeneratorChoice {
name = "value_hints_derive", name = "value_hints_derive",
// AppSettings::TrailingVarArg is required to use ValueHint::CommandWithArguments // AppSettings::TrailingVarArg is required to use ValueHint::CommandWithArguments
setting = AppSettings::TrailingVarArg, setting = AppSettings::TrailingVarArg,
setting = AppSettings::DisableVersionFlag
)] )]
struct Opt { struct Opt {
/// If provided, outputs the completion file for given shell /// If provided, outputs the completion file for given shell

View file

@ -19,7 +19,6 @@ use std::io;
fn build_cli() -> App<'static> { fn build_cli() -> App<'static> {
App::new("value_hints") App::new("value_hints")
.setting(AppSettings::DisableVersionFlag)
// AppSettings::TrailingVarArg is required to use ValueHint::CommandWithArguments // AppSettings::TrailingVarArg is required to use ValueHint::CommandWithArguments
.setting(AppSettings::TrailingVarArg) .setting(AppSettings::TrailingVarArg)
.arg(Arg::new("generator").long("generate").possible_values([ .arg(Arg::new("generator").long("generate").possible_values([