Lines Matching refs:clap
39 let result = Opt::clap().get_matches_from_safe(&["test"]); in test_no_cmd()
48 Opt2::from_clap(&Opt2::clap().get_matches_from(&["test"])) in test_no_cmd()
60 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-vvv", "fetch"])) in test_fetch()
68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--force", "fetch"])) in test_fetch()
80 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add"])) in test_add()
88 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-vv", "add"])) in test_add()
94 let result = Opt::clap().get_matches_from_safe(&["test", "badcmd"]); in test_badinput()
96 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--verbose"]); in test_badinput()
98 let result = Opt::clap().get_matches_from_safe(&["test", "--badopt", "add"]); in test_badinput()
100 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--badopt"]); in test_badinput()
139 &Opt3::clap().get_matches_from(&["test", "--all", "foo", "lib.rs", "quux"]) in test_subsubcommand()
170 SubSubCmdWithOption::clap() in sub_sub_cmd_with_option()