Lines Matching refs:Command

5 use clap::{arg, error::ErrorKind, Arg, ArgAction, Command};
30 Command::new("sub_command_negate")
33 .subcommand(Command::new("sub1"))
40 let result = Command::new("sub_command_negate")
43 .subcommand(Command::new("sub1"))
52 let result = Command::new("sc_required")
54 .subcommand(Command::new("sub1"))
73 let cmd = Command::new("sc_required")
75 .subcommand(Command::new("sub1"));
81 let result = Command::new("arg_required")
96 let result = Command::new("arg_required")
111 let result = Command::new("sub_required")
114 .subcommand(Command::new("sub1"))
127 let result = Command::new("arg_required")
151 let cmd = Command::new("test")
172 let m = Command::new("prog")
174 .subcommand(Command::new("test"))
175 .subcommand(Command::new("temp"))
184 let m = Command::new("prog")
186 .subcommand(Command::new("test"))
187 .subcommand(Command::new("temp"))
195 let m = Command::new("prog")
198 .subcommand(Command::new("test"))
199 .subcommand(Command::new("temp"))
210 let m = Command::new("prog")
213 .subcommand(Command::new("test"))
214 .subcommand(Command::new("temp"))
225 let m = Command::new("prog")
227 .subcommand(Command::new("test"))
235 let m = Command::new("prog")
237 .subcommand(Command::new("test"))
238 .subcommand(Command::new("temp"))
246 let m = Command::new("prog")
248 .subcommand(Command::new("test"))
249 .subcommand(Command::new("testa"))
250 .subcommand(Command::new("testb"))
259 let m = Command::new("prog")
261 .subcommand(Command::new("test"))
262 .subcommand(Command::new("temp"))
271 let m = Command::new("prog")
273 .subcommand(Command::new("test"))
274 .subcommand(Command::new("temp"))
282 let result = Command::new("arg_required")
313 let cmd = Command::new("test")
328 let r = Command::new("onlypos")
347 let m = Command::new("positional")
364 let r = Command::new("onlypos")
382 let m = Command::new("positional")
398 let r = Command::new("onlypos")
419 let m = Command::new("positional")
439 let res = Command::new("leadhy")
459 let res = Command::new("leadhy")
479 let res = Command::new("leadhy")
504 let res = Command::new("negnum")
527 let res = Command::new("negnum")
592 let cmd = Command::new("test").arg(arg!(-p - -prog)).arg(
615 let result = Command::new("disablehelp")
617 .subcommand(Command::new("sub1"))
626 let cmd = Command::new("clap-test").version("v1.4.8").args([
645 let cmd = Command::new("clap-test").version("v1.4.8").arg(
659 let m = Command::new("myprog")
661 .subcommand(Command::new("foo"))
675 let m = Command::new("test")
691 let m = Command::new("test")
707 let r = Command::new("bench")
734 let r = Command::new("bench")
761 let r = Command::new("bench")
800 let r = Command::new("bench")
812 let res = Command::new("prog")
826 let m = Command::new("tmp")
843 let m = Command::new("prog")
861 let cmd = Command::new("clap-test")
869 let res = Command::new("clap-test")
890 let res = Command::new("clap-test")
915 let res = Command::new("cargo")
918 .subcommand(Command::new("install"))
939 let res = Command::new("cargo")
942 .subcommand(Command::new("install"))
964 let res = Command::new("posix")
986 let res = Command::new("posix")
1013 let res = Command::new("posix")
1035 let res = Command::new("posix")
1062 let res = Command::new("posix")
1085 let res = Command::new("posix")
1111 let res = Command::new("posix")
1134 let res = Command::new("posix")
1165 let res = Command::new("posix")
1182 let m = Command::new("posix")
1204 let mut cmd = Command::new("myprog")
1206 .subcommand(Command::new("foo"));