Lines Matching refs:clap
42 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "fetch", "--all", "origin"])) in test_fetch()
50 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "fetch", "-f", "origin"])) in test_fetch()
61 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add"])) in test_add()
68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add", "-i", "-v"])) in test_add()
74 let result = Opt::clap().get_matches_from_safe(&["test", "badcmd", "-i", "-v"]); in test_no_parse()
77 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--badoption"]); in test_no_parse()
80 let result = Opt::clap().get_matches_from_safe(&["test"]); in test_no_parse()
97 Opt2::from_clap(&Opt2::clap().get_matches_from(&["test", "do-something", "blah"])) in test_hyphenated_subcommands()
112 Opt3::from_clap(&Opt3::clap().get_matches_from(&["test", "add"])) in test_null_commands()
116 Opt3::from_clap(&Opt3::clap().get_matches_from(&["test", "init"])) in test_null_commands()
120 Opt3::from_clap(&Opt3::clap().get_matches_from(&["test", "fetch"])) in test_null_commands()
150 Opt4::from_clap(&Opt4::clap().get_matches_from(&["test", "add", "f"])) in test_tuple_commands()
154 Opt4::from_clap(&Opt4::clap().get_matches_from(&["test", "init"])) in test_tuple_commands()
160 Opt4::from_clap(&Opt4::clap().get_matches_from(&["test", "fetch", "origin"])) in test_tuple_commands()
183 let result = Opt::clap().get_matches_from_safe(&["test"]); in enum_in_enum_subsubcommand()
186 let result = Opt::clap().get_matches_from_safe(&["test", "daemon"]); in enum_in_enum_subsubcommand()