Lines Matching refs:clap
9 use structopt::clap::AppSettings;
46 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1"])) in test_slice()
55 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--level", "1"])) in test_slice()
64 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--set-level", "1"])) in test_slice()
73 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--lvl", "1"])) in test_slice()
86 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1", "file"])) in test_multi_args()
96 &Opt::clap().get_matches_from(&["test", "-l", "1", "--values", "1", "--", "FILE"]), in test_multi_args()
103 let result = Opt::clap().get_matches_from_safe(&["test", "-l", "1", "--", "FILE"]); in test_multi_args_fail()
116 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1", "--x=1"])) in test_bool()
118 let result = Opt::clap().get_matches_from_safe(&["test", "-l", "1", "--x", "1"]); in test_bool()
136 HexOpt::from_clap(&HexOpt::clap().get_matches_from(&["test", "-n", "5"])) in test_parse_hex_function_path()
140 HexOpt::from_clap(&HexOpt::clap().get_matches_from(&["test", "-n", "abcdef"])) in test_parse_hex_function_path()
143 let err = HexOpt::clap() in test_parse_hex_function_path()