Home
last modified time | relevance | path

Searched refs:sub_matches (Results 1 - 4 of 4) sorted by relevance

/third_party/rust/crates/clap/examples/
H A Dgit.rs63 Some(("clone", sub_matches)) => { in main()
66 sub_matches.get_one::<String>("REMOTE").expect("required") in main()
69 Some(("diff", sub_matches)) => { in main()
70 let color = sub_matches in main()
75 let mut base = sub_matches.get_one::<String>("base").map(|s| s.as_str()); in main()
76 let mut head = sub_matches.get_one::<String>("head").map(|s| s.as_str()); in main()
77 let mut path = sub_matches.get_one::<String>("path").map(|s| s.as_str()); in main()
91 Some(("push", sub_matches)) => { in main()
94 sub_matches.get_one::<String>("REMOTE").expect("required") in main()
97 Some(("add", sub_matches)) in main()
[all...]
/third_party/rust/crates/clap/tests/builder/
H A Dflag_subcommands.rs20 let sub_matches = matches.subcommand_matches("some").unwrap(); in flag_subcommand_normal()
21 assert!(*sub_matches in flag_subcommand_normal()
45 let sub_matches = matches.subcommand_matches("some").unwrap(); in flag_subcommand_normal_with_alias()
46 assert!(*sub_matches in flag_subcommand_normal_with_alias()
66 let sub_matches = matches.subcommand_matches("some").unwrap(); in flag_subcommand_short()
67 assert!(*sub_matches in flag_subcommand_short()
87 let sub_matches = matches.subcommand_matches("some").unwrap(); in flag_subcommand_short_with_args()
88 assert!(*sub_matches in flag_subcommand_short_with_args()
112 let sub_matches = matches.subcommand_matches("some").unwrap(); in flag_subcommand_short_with_alias()
113 assert!(*sub_matches in flag_subcommand_short_with_alias()
[all...]
/third_party/vixl/test/aarch64/
H A Dtest-debugger-aarch64.h148 std::smatch sub_matches; in GetInstructionAddress() local
153 if (std::regex_search(str, sub_matches, regex) && sub_matches.size() == 3) { in GetInstructionAddress()
154 return sub_matches[1].str() + sub_matches[2].str(); in GetInstructionAddress()
/third_party/rust/crates/clap/examples/tutorial_builder/
H A D03_04_subcommands.rs16 Some(("add", sub_matches)) => println!( in main()
18 sub_matches.get_one::<String>("NAME") in main()

Completed in 3 milliseconds