mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
tests(Examples): fixes examples for no-auto generated version
This commit is contained in:
parent
7169c47fed
commit
0addd938a6
2 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue