Home
last modified time | relevance | path

Searched refs:get_flag (Results 1 – 16 of 16) sorted by relevance

/third_party/rust/crates/clap/tests/builder/
Daction.rs87 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 …]
Dapp_settings.rs610 assert_eq!(m.get_flag("prog"), expected_flag); in assert_trailing_var_args()
Dmultiple_values.rs1314 assert!(!m.get_flag("yes")); in low_index_positional_with_extra_flags()
/third_party/rust/crates/clap/examples/tutorial_builder/
D04_04_custom.rs33 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()
D04_03_relations.rs51 matches.get_flag("major"), in main()
52 matches.get_flag("minor"), in main()
53 matches.get_flag("patch"), in main()
D03_01_flag_bool.rs13 println!("verbose: {:?}", matches.get_flag("verbose")); in main()
D01_quick.rs51 if matches.get_flag("list") { in main()
/third_party/ltp/testcases/kernel/syscalls/pipe2/
Dpipe2_01.c54 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/
Dflatten_hand_args.rs18 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()
Daugment_args.rs15 println!("Value of built: {:?}", matches.get_flag("built")); in main()
18 matches.get_flag("derived") in main()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl_loop01.c45 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/
Descaped-positional.rs19 println!("-f used: {:?}", matches.get_flag("eff")); in main()
Dpacman.rs92 if sync_matches.get_flag("info") { in main()
/third_party/rust/crates/cxx/gen/cmd/src/
Dapp.rs66 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/
Darg_matches.rs173 pub fn get_flag(&self, id: &str) -> bool { in get_flag() method
/third_party/rust/crates/clap/
DCHANGELOG.md42 - In documentation, refer to `get_flag`, rather than `get_one::<bool>`
451 - `ArgAction::SetTrue`, requiring `ArgMatches::get_flag` instead of `ArgMatches::is_present`