Searched refs:get_flag (Results 1 – 16 of 16) sorted by relevance
/third_party/rust/crates/clap/tests/builder/ |
D | action.rs | 87 assert_eq!(matches.get_flag("mammal"), false); in set_true() 95 assert_eq!(matches.get_flag("mammal"), true); in set_true() 110 assert_eq!(matches.get_flag("mammal"), true); in set_true() 128 assert_eq!(matches.get_flag("mammal"), true); in set_true_with_explicit_default_value() 133 assert_eq!(matches.get_flag("mammal"), false); in set_true_with_explicit_default_value() 150 assert_eq!(matches.get_flag("dog"), false); in set_true_with_default_value_if_present() 151 assert_eq!(matches.get_flag("mammal"), false); in set_true_with_default_value_if_present() 154 assert_eq!(matches.get_flag("dog"), true); in set_true_with_default_value_if_present() 155 assert_eq!(matches.get_flag("mammal"), true); in set_true_with_default_value_if_present() 161 assert_eq!(matches.get_flag("dog"), false); in set_true_with_default_value_if_present() [all …]
|
D | app_settings.rs | 610 assert_eq!(m.get_flag("prog"), expected_flag); in assert_trailing_var_args()
|
D | multiple_values.rs | 1314 assert!(!m.get_flag("yes")); in low_index_positional_with_extra_flags()
|
/third_party/rust/crates/clap/examples/tutorial_builder/ |
D | 04_04_custom.rs | 33 if matches.get_flag("major") || matches.get_flag("minor") || matches.get_flag("patch") { in main() 44 matches.get_flag("major"), in main() 45 matches.get_flag("minor"), in main() 46 matches.get_flag("patch"), in main()
|
D | 04_03_relations.rs | 51 matches.get_flag("major"), in main() 52 matches.get_flag("minor"), in main() 53 matches.get_flag("patch"), in main()
|
D | 03_01_flag_bool.rs | 13 println!("verbose: {:?}", matches.get_flag("verbose")); in main()
|
D | 01_quick.rs | 51 if matches.get_flag("list") { in main()
|
/third_party/ltp/testcases/kernel/syscalls/pipe2/ |
D | pipe2_01.c | 54 int get_flag = 0, i = 0; in verify_pipe2() local 66 get_flag = SAFE_FCNTL(fds[i], tc->cmd); in verify_pipe2() 67 if ((get_flag && tc->flags) || (tc->flags == get_flag)) in verify_pipe2() 71 i, tc->flags, get_flag); in verify_pipe2()
|
/third_party/rust/crates/clap/examples/derive_ref/ |
D | flatten_hand_args.rs | 18 foo: matches.get_flag("foo"), in from_arg_matches_mut() 19 bar: matches.get_flag("bar"), in from_arg_matches_mut() 28 self.foo |= matches.get_flag("foo"); in update_from_arg_matches_mut() 29 self.bar |= matches.get_flag("bar"); in update_from_arg_matches_mut()
|
D | augment_args.rs | 15 println!("Value of built: {:?}", matches.get_flag("built")); in main() 18 matches.get_flag("derived") in main()
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl_loop01.c | 45 static void check_loop_value(int set_flag, int get_flag, int autoclear_field) in check_loop_value() argument 54 if (loopinfoget.lo_flags & ~get_flag) in check_loop_value() 55 tst_res(TFAIL, "expect %d but got %d", get_flag, loopinfoget.lo_flags); in check_loop_value()
|
/third_party/rust/crates/clap/examples/ |
D | escaped-positional.rs | 19 println!("-f used: {:?}", matches.get_flag("eff")); in main()
|
D | pacman.rs | 92 if sync_matches.get_flag("info") { in main()
|
/third_party/rust/crates/cxx/gen/cmd/src/ |
D | app.rs | 66 if matches.get_flag(HELP) { in from_args() 75 let header = matches.get_flag(HEADER); in from_args()
|
/third_party/rust/crates/clap/src/parser/matches/ |
D | arg_matches.rs | 173 pub fn get_flag(&self, id: &str) -> bool { in get_flag() method
|
/third_party/rust/crates/clap/ |
D | CHANGELOG.md | 42 - In documentation, refer to `get_flag`, rather than `get_one::<bool>` 451 - `ArgAction::SetTrue`, requiring `ArgMatches::get_flag` instead of `ArgMatches::is_present`
|