Home
last modified time | relevance | path

Searched refs:SetTrue (Results 1 – 25 of 55) sorted by relevance

123

/third_party/rust/crates/clap/tests/builder/
Dderive_order.rs28 .action(ArgAction::SetTrue), in no_derive_order()
36 .action(ArgAction::SetTrue), in no_derive_order()
64 .action(ArgAction::SetTrue), in derive_order()
72 .action(ArgAction::SetTrue), in derive_order()
103 .action(ArgAction::SetTrue), in derive_order_next_order()
116 .action(ArgAction::SetTrue), in derive_order_next_order()
149 .action(ArgAction::SetTrue), in derive_order_no_next_order()
161 .action(ArgAction::SetTrue), in derive_order_no_next_order()
192 .action(ArgAction::SetTrue), in derive_order_subcommand_propagate()
200 .action(ArgAction::SetTrue), in derive_order_subcommand_propagate()
[all …]
Dflags.rs10 arg!(-f --flag "some flag").action(ArgAction::SetTrue), in flag_using_short()
11 arg!(-c --color "some other flag").action(ArgAction::SetTrue), in flag_using_short()
23 .arg(arg!(o: -o ... "some flag").action(ArgAction::SetTrue)) in lots_o_flags_sep()
58 .arg(arg!(o: -o ... "some flag").action(ArgAction::SetTrue)) in lots_o_flags_combined()
77 arg!(--flag "some flag").action(ArgAction::SetTrue), in flag_using_long()
78 arg!(--color "some other flag").action(ArgAction::SetTrue), in flag_using_long()
94 .action(ArgAction::SetTrue), in flag_using_long_with_literals()
105 arg!(-f --flag "some flag").action(ArgAction::SetTrue), in flag_using_mixed()
106 arg!(-c --color "some other flag").action(ArgAction::SetTrue), in flag_using_mixed()
115 arg!(-f --flag "some flag").action(ArgAction::SetTrue), in flag_using_mixed()
[all …]
Dposix_compatible.rs9 .action(ArgAction::SetTrue) in flag_overrides_itself()
42 .action(ArgAction::SetTrue), in posix_compatible_flags_long()
44 .arg(arg!(--color "some other flag").action(ArgAction::SetTrue)) in posix_compatible_flags_long()
57 .action(ArgAction::SetTrue), in posix_compatible_flags_long_rev()
59 .arg(arg!(--color "some other flag").action(ArgAction::SetTrue)) in posix_compatible_flags_long_rev()
72 .action(ArgAction::SetTrue), in posix_compatible_flags_short()
74 .arg(arg!(-c --color "some other flag").action(ArgAction::SetTrue)) in posix_compatible_flags_short()
87 .action(ArgAction::SetTrue), in posix_compatible_flags_short_rev()
89 .arg(arg!(-c --color "some other flag").action(ArgAction::SetTrue)) in posix_compatible_flags_short_rev()
192 .action(ArgAction::SetTrue), in conflict_overridden()
[all …]
Dindices.rs58 .arg(Arg::new("exclude").short('e').action(ArgAction::SetTrue)) in index_flag()
59 .arg(Arg::new("include").short('i').action(ArgAction::SetTrue)) in index_flag()
71 .arg(Arg::new("exclude").short('e').action(ArgAction::SetTrue)) in index_flags()
72 .arg(Arg::new("include").short('i').action(ArgAction::SetTrue)) in index_flags()
84 .arg(Arg::new("exclude").short('e').action(ArgAction::SetTrue)) in indices_mult_flags()
85 .arg(Arg::new("include").short('i').action(ArgAction::SetTrue)) in indices_mult_flags()
97 .arg(Arg::new("exclude").short('e').action(ArgAction::SetTrue)) in indices_mult_flags_combined()
98 .arg(Arg::new("include").short('i').action(ArgAction::SetTrue)) in indices_mult_flags_combined()
110 .arg(Arg::new("exclude").short('e').action(ArgAction::SetTrue)) in indices_mult_flags_opt_combined()
111 .arg(Arg::new("include").short('i').action(ArgAction::SetTrue)) in indices_mult_flags_opt_combined()
[all …]
Drequire.rs24 .action(ArgAction::SetTrue), in flag_required_2()
26 .arg(arg!(-c --color "third flag").action(ArgAction::SetTrue)) in flag_required_2()
162 .arg(arg!(-f --flag "some flag").action(ArgAction::SetTrue)) in group_required_2()
164 .arg(arg!(--some "some arg").action(ArgAction::SetTrue)) in group_required_2()
165 .arg(arg!(--other "other arg").action(ArgAction::SetTrue)) in group_required_2()
176 .arg(arg!(-f --flag "some flag").action(ArgAction::SetTrue)) in group_required_3()
178 .arg(arg!(--some "some arg").action(ArgAction::SetTrue)) in group_required_3()
179 .arg(arg!(--other "other arg").action(ArgAction::SetTrue)) in group_required_3()
206 .action(ArgAction::SetTrue), in arg_require_group_2()
209 .arg(arg!(--some "some arg").action(ArgAction::SetTrue)) in arg_require_group_2()
[all …]
Dhidden_args.rs55 .action(ArgAction::SetTrue) in hide_short_args()
60 .action(ArgAction::SetTrue) in hide_short_args()
98 .action(ArgAction::SetTrue) in hide_short_args_long_help()
103 .action(ArgAction::SetTrue) in hide_short_args_long_help()
137 .action(ArgAction::SetTrue) in hide_long_args()
142 .action(ArgAction::SetTrue) in hide_long_args()
172 .action(ArgAction::SetTrue) in hide_long_args_short_help()
177 .action(ArgAction::SetTrue) in hide_long_args_short_help()
Dflag_subcommands.rs14 .action(ArgAction::SetTrue), in flag_subcommand_normal()
38 .action(ArgAction::SetTrue), in flag_subcommand_normal_with_alias()
60 .action(ArgAction::SetTrue), in flag_subcommand_short()
81 .action(ArgAction::SetTrue), in flag_subcommand_short_with_args()
104 .action(ArgAction::SetTrue), in flag_subcommand_short_with_alias()
178 .action(ArgAction::SetTrue), in flag_subcommand_short_with_aliases()
235 .arg(Arg::new("clean").short('c').action(ArgAction::SetTrue)), in flag_subcommand_short_after_long_arg()
255 .action(ArgAction::SetTrue), in flag_subcommand_long()
278 .action(ArgAction::SetTrue), in flag_subcommand_long_with_alias()
302 .action(ArgAction::SetTrue), in flag_subcommand_long_with_aliases()
[all …]
Dhelp.rs142 .action(ArgAction::SetTrue), in args_with_last_usage()
373 .action(ArgAction::SetTrue) in wrapped_help()
379 .action(ArgAction::SetTrue) in wrapped_help()
385 .action(ArgAction::SetTrue) in wrapped_help()
391 .action(ArgAction::SetTrue) in wrapped_help()
419 .action(ArgAction::SetTrue) in unwrapped_help()
425 .action(ArgAction::SetTrue) in unwrapped_help()
431 .action(ArgAction::SetTrue) in unwrapped_help()
437 .action(ArgAction::SetTrue) in unwrapped_help()
817 .action(ArgAction::SetTrue)) in dont_wrap_urls()
[all …]
Dconflicts.rs85 .action(clap::ArgAction::SetTrue), in not_exclusive_with_group()
427 .action(ArgAction::SetTrue) in conflict_output_three_conflicting()
433 .action(ArgAction::SetTrue) in conflict_output_three_conflicting()
439 .action(ArgAction::SetTrue) in conflict_output_three_conflicting()
457 .action(ArgAction::SetTrue) in two_conflicting_arguments()
463 .action(ArgAction::SetTrue) in two_conflicting_arguments()
485 .action(ArgAction::SetTrue) in three_conflicting_arguments()
491 .action(ArgAction::SetTrue) in three_conflicting_arguments()
497 .action(ArgAction::SetTrue) in three_conflicting_arguments()
537 .action(ArgAction::SetTrue), in conflict_with_unused_default()
[all …]
Dglobal_args.rs93 .action(ArgAction::SetTrue), in global_arg_available_in_subcommand()
97 .action(ArgAction::SetTrue), in global_arg_available_in_subcommand()
114 .arg(arg!(--"long-a").global(true).action(ArgAction::SetTrue)) in deeply_nested_discovery()
117 .arg(arg!(--"long-b").global(true).action(ArgAction::SetTrue)) in deeply_nested_discovery()
120 .arg(arg!(--"long-c").global(true).action(ArgAction::SetTrue)) in deeply_nested_discovery()
Dhelp_env.rs159 .action(ArgAction::SetTrue) in hide_env_flag()
176 .action(ArgAction::SetTrue) in show_env_flag()
192 .action(ArgAction::SetTrue) in hide_env_vals_flag()
209 .action(ArgAction::SetTrue) in show_env_vals_flag()
Ddouble_require.rs18 .action(ArgAction::SetTrue) in cmd()
25 .action(ArgAction::SetTrue) in cmd()
32 .action(ArgAction::SetTrue) in cmd()
Dpositionals.rs21 .arg(arg!(--exact "filters match exactly").action(ArgAction::SetTrue)) in issue_946()
44 arg!(-f --flag "some flag").action(ArgAction::SetTrue), in positional()
61 arg!(-f --flag "some flag").action(ArgAction::SetTrue), in positional()
120 arg!(-f --flag "some flag").action(ArgAction::SetTrue), in positional_multiple()
144 arg!(-f --flag "some flag").action(ArgAction::SetTrue), in positional_multiple_3()
178 arg!(-f --flag "some flag").action(ArgAction::SetTrue), in positional_possible_values()
Daction.rs84 Command::new("test").arg(Arg::new("mammal").long("mammal").action(ArgAction::SetTrue)); in set_true()
120 .action(ArgAction::SetTrue) in set_true_with_explicit_default_value()
144 .action(ArgAction::SetTrue) in set_true_with_default_value_if_present()
147 .arg(Arg::new("dog").long("dog").action(ArgAction::SetTrue)); in set_true_with_default_value_if_present()
171 .action(ArgAction::SetTrue) in set_true_with_default_value_if_value()
174 .arg(Arg::new("dog").long("dog").action(ArgAction::SetTrue)); in set_true_with_default_value_if_value()
198 .action(ArgAction::SetTrue) in set_true_with_required_if_eq()
201 .arg(Arg::new("dog").long("dog").action(ArgAction::SetTrue)); in set_true_with_required_if_eq()
Dmultiple_occurrences.rs7 .arg(arg!(--multflag "allowed multiple flag").action(ArgAction::SetTrue)) in multiple_occurrences_of_flags_long()
8 .arg(arg!(--flag "disallowed multiple flag").action(ArgAction::SetTrue)) in multiple_occurrences_of_flags_long()
21 .arg(arg!(-m --multflag "allowed multiple flag").action(ArgAction::SetTrue)) in multiple_occurrences_of_flags_short()
22 .arg(arg!(-f --flag "disallowed multiple flag").action(ArgAction::SetTrue)) in multiple_occurrences_of_flags_short()
/third_party/rust/crates/clap/src/builder/
Daction.rs148 SetTrue, enumerator
284 Self::SetTrue => false, in takes_values()
296 Self::SetTrue => Some(std::ffi::OsStr::new("false")), in default_value()
308 Self::SetTrue => Some(std::ffi::OsStr::new("true")), in default_missing_value()
320 Self::SetTrue => Some(super::ValueParser::bool()), in default_value_parser()
335 Self::SetTrue => None, in value_type_id()
/third_party/rust/crates/clap/clap_complete_fig/tests/
Dcommon.rs7 .action(clap::ArgAction::SetTrue), in basic_command()
13 .action(clap::ArgAction::SetTrue), in basic_command()
79 .action(clap::ArgAction::SetTrue) in quoting_command()
85 .action(clap::ArgAction::SetTrue) in quoting_command()
91 .action(clap::ArgAction::SetTrue) in quoting_command()
97 .action(clap::ArgAction::SetTrue) in quoting_command()
103 .action(clap::ArgAction::SetTrue) in quoting_command()
109 .action(clap::ArgAction::SetTrue) in quoting_command()
132 .action(clap::ArgAction::SetTrue) in aliases_command()
/third_party/rust/crates/clap/clap_complete/tests/
Dcommon.rs9 .action(clap::ArgAction::SetTrue), in basic_command()
15 .action(clap::ArgAction::SetTrue), in basic_command()
81 .action(clap::ArgAction::SetTrue) in quoting_command()
87 .action(clap::ArgAction::SetTrue) in quoting_command()
93 .action(clap::ArgAction::SetTrue) in quoting_command()
99 .action(clap::ArgAction::SetTrue) in quoting_command()
105 .action(clap::ArgAction::SetTrue) in quoting_command()
111 .action(clap::ArgAction::SetTrue) in quoting_command()
134 .action(clap::ArgAction::SetTrue) in aliases_command()
/third_party/rust/crates/clap/clap_mangen/tests/
Dcommon.rs9 .action(clap::ArgAction::SetTrue), in basic_command()
15 .action(clap::ArgAction::SetTrue), in basic_command()
77 .action(clap::ArgAction::SetTrue) in quoting_command()
83 .action(clap::ArgAction::SetTrue) in quoting_command()
89 .action(clap::ArgAction::SetTrue) in quoting_command()
95 .action(clap::ArgAction::SetTrue) in quoting_command()
101 .action(clap::ArgAction::SetTrue) in quoting_command()
107 .action(clap::ArgAction::SetTrue) in quoting_command()
130 .action(clap::ArgAction::SetTrue) in aliases_command()
/third_party/rust/crates/clap/clap_bench/benches/
D06_rustup.rs34 .action(ArgAction::SetTrue), in build_cli()
57 .action(ArgAction::SetTrue) in build_cli()
215 .action(ArgAction::SetTrue) in build_cli()
232 .action(ArgAction::SetTrue) in build_cli()
261 .action(ArgAction::SetTrue) in build_cli()
267 .action(ArgAction::SetTrue) in build_cli()
289 .arg(Arg::new("no-prompt").short('y').action(ArgAction::SetTrue)), in build_cli()
/third_party/rust/crates/clap/examples/derive_ref/
Dflatten_hand_args.rs43 .action(ArgAction::SetTrue), in augment_args()
49 .action(ArgAction::SetTrue), in augment_args()
63 .action(ArgAction::SetTrue), in augment_args_for_update()
69 .action(ArgAction::SetTrue), in augment_args_for_update()
/third_party/rust/crates/clap/tests/
Dmacros.rs46 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short()
54 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short()
70 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short()
85 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long()
94 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long()
112 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long()
124 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_help()
140 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in long_help()
156 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_version()
173 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in long_version()
/third_party/rust/crates/clap/examples/tutorial_builder/
D04_03_relations.rs10 .arg(arg!(--major "auto inc major").action(ArgAction::SetTrue)) in main()
11 .arg(arg!(--minor "auto inc minor").action(ArgAction::SetTrue)) in main()
12 .arg(arg!(--patch "auto inc patch").action(ArgAction::SetTrue)) in main()
D04_04_custom.rs11 .arg(arg!(--major "auto inc major").action(ArgAction::SetTrue)) in main()
12 .arg(arg!(--minor "auto inc minor").action(ArgAction::SetTrue)) in main()
13 .arg(arg!(--patch "auto inc patch").action(ArgAction::SetTrue)) in main()
/third_party/rust/crates/clap/src/
Dmacros.rs215 let action = $crate::ArgAction::SetTrue;
238 let action = $crate::ArgAction::SetTrue;
257 let action = $crate::ArgAction::SetTrue;
276 let action = $crate::ArgAction::SetTrue;
413 $crate::ArgAction::SetTrue | $crate::ArgAction::Help | $crate::ArgAction::Version => {

123