Lines Matching refs:Command
3 use clap::{arg, error::ErrorKind, Arg, ArgAction, Command};
7 let matches = Command::new("test") in flag_subcommand_normal()
9 Command::new("some").short_flag('S').long_flag("some").arg( in flag_subcommand_normal()
28 let matches = Command::new("test") in flag_subcommand_normal_with_alias()
30 Command::new("some") in flag_subcommand_normal_with_alias()
53 let matches = Command::new("test") in flag_subcommand_short()
55 Command::new("some").short_flag('S').arg( in flag_subcommand_short()
74 let matches = Command::new("test") in flag_subcommand_short_with_args()
76 Command::new("some").short_flag('S').arg( in flag_subcommand_short_with_args()
95 let matches = Command::new("test") in flag_subcommand_short_with_alias()
97 Command::new("some") in flag_subcommand_short_with_alias()
120 let matches = Command::new("test") in flag_subcommand_short_with_alias_same_as_short_flag()
121 .subcommand(Command::new("some").short_flag('S').short_flag_alias('S')) in flag_subcommand_short_with_alias_same_as_short_flag()
129 let matches = Command::new("test") in flag_subcommand_long_with_alias_same_as_long_flag()
131 Command::new("some") in flag_subcommand_long_with_alias_same_as_long_flag()
142 let cmd = Command::new("test").subcommand( in flag_subcommand_short_with_aliases_vis_and_hidden()
143 Command::new("some") in flag_subcommand_short_with_aliases_vis_and_hidden()
169 let matches = Command::new("test") in flag_subcommand_short_with_aliases()
171 Command::new("some") in flag_subcommand_short_with_aliases()
194 let _ = Command::new("test") in flag_subcommand_short_with_alias_hyphen()
196 Command::new("some") in flag_subcommand_short_with_alias_hyphen()
213 let _ = Command::new("test") in flag_subcommand_short_with_aliases_hyphen()
215 Command::new("some") in flag_subcommand_short_with_aliases_hyphen()
231 let m = Command::new("pacman") in flag_subcommand_short_after_long_arg()
233 Command::new("sync") in flag_subcommand_short_after_long_arg()
248 let matches = Command::new("test") in flag_subcommand_long()
250 Command::new("some").long_flag("some").arg( in flag_subcommand_long()
269 let matches = Command::new("test") in flag_subcommand_long_with_alias()
271 Command::new("some") in flag_subcommand_long_with_alias()
293 let matches = Command::new("test") in flag_subcommand_long_with_aliases()
295 Command::new("some") in flag_subcommand_long_with_aliases()
317 let matches = Command::new("test") in flag_subcommand_multiple()
319 Command::new("some") in flag_subcommand_multiple()
325 Command::new("result") in flag_subcommand_multiple()
356 let _ = Command::new("test") in flag_subcommand_short_conflict_with_arg()
357 .subcommand(Command::new("some").short_flag('f').long_flag("some")) in flag_subcommand_short_conflict_with_arg()
367 let _ = Command::new("test") in flag_subcommand_short_conflict_with_alias()
368 .subcommand(Command::new("some").short_flag('f').long_flag("some")) in flag_subcommand_short_conflict_with_alias()
369 .subcommand(Command::new("result").short_flag('t').short_flag_alias('f')) in flag_subcommand_short_conflict_with_alias()
378 let _ = Command::new("test") in flag_subcommand_long_conflict_with_alias()
379 .subcommand(Command::new("some").long_flag("flag")) in flag_subcommand_long_conflict_with_alias()
381 Command::new("result") in flag_subcommand_long_conflict_with_alias()
393 let _ = Command::new("test") in flag_subcommand_short_conflict_with_arg_alias()
394 .subcommand(Command::new("some").short_flag('f').long_flag("some")) in flag_subcommand_short_conflict_with_arg_alias()
404 let _ = Command::new("test") in flag_subcommand_long_conflict_with_arg_alias()
405 .subcommand(Command::new("some").short_flag('f').long_flag("some")) in flag_subcommand_long_conflict_with_arg_alias()
415 let _ = Command::new("test") in flag_subcommand_long_conflict_with_arg()
416 .subcommand(Command::new("some").short_flag('a').long_flag("flag")) in flag_subcommand_long_conflict_with_arg()
425 let _ = Command::new("test") in flag_subcommand_conflict_with_help()
426 .subcommand(Command::new("help").short_flag('h').long_flag("help")) in flag_subcommand_conflict_with_help()
435 let _ = Command::new("test") in flag_subcommand_conflict_with_version()
437 .subcommand(Command::new("ver").short_flag('V').long_flag("version")) in flag_subcommand_conflict_with_version()
444 let m = Command::new("prog") in flag_subcommand_long_infer_pass()
446 .subcommand(Command::new("test").long_flag("test")) in flag_subcommand_long_infer_pass()
455 let m = Command::new("prog") in flag_subcommand_long_infer_fail()
457 .subcommand(Command::new("test").long_flag("test")) in flag_subcommand_long_infer_fail()
458 .subcommand(Command::new("temp").long_flag("temp")) in flag_subcommand_long_infer_fail()
467 let m = Command::new("prog") in flag_subcommand_long_infer_fail()
469 .subcommand(Command::new("test").long_flag("test")) in flag_subcommand_long_infer_fail()
470 .subcommand(Command::new("temp").long_flag("temp")) in flag_subcommand_long_infer_fail()
478 let m = Command::new("prog") in flag_subcommand_long_infer_pass_close()
480 .subcommand(Command::new("test").long_flag("test")) in flag_subcommand_long_infer_pass_close()
481 .subcommand(Command::new("temp").long_flag("temp")) in flag_subcommand_long_infer_pass_close()
489 let m = Command::new("prog") in flag_subcommand_long_infer_exact_match()
491 .subcommand(Command::new("test").long_flag("test")) in flag_subcommand_long_infer_exact_match()
492 .subcommand(Command::new("testa").long_flag("testa")) in flag_subcommand_long_infer_exact_match()
493 .subcommand(Command::new("testb").long_flag("testb")) in flag_subcommand_long_infer_exact_match()
512 let cmd = Command::new("pacman") in flag_subcommand_long_short_normal_usage_string()
521 Command::new("query") in flag_subcommand_long_short_normal_usage_string()
560 let cmd = Command::new("pacman") in flag_subcommand_long_normal_usage_string()
569 Command::new("query") in flag_subcommand_long_normal_usage_string()
612 let cmd = Command::new("pacman") in flag_subcommand_short_normal_usage_string()
621 Command::new("query") in flag_subcommand_short_normal_usage_string()