Lines Matching defs:subcommand

6 fn subcommand() {
8 .subcommand(
33 .subcommand(
80 .subcommand(Command::new("test").alias("do-stuff"))
89 .subcommand(Command::new("test").aliases(["do-stuff", "test-stuff"]))
101 error: unrecognized subcommand 'subcm'
103 note: subcommand 'subcmd' exists
111 let cmd = Command::new("dym").subcommand(Command::new("subcmd"));
121 error: unrecognized subcommand 'te'
132 .subcommand(Command::new("test"))
133 .subcommand(Command::new("temp"));
152 .subcommand(Command::new("subcmd").arg(arg!(-s --subcmdarg <subcmdarg> "tests")));
170 .subcommand(Command::new("subcmd").arg(arg!(-s --subcmdarg <subcmdarg> "tests")));
178 .subcommand(Command::new("test").alias("do-stuff"))
191 help Print this message or the help of the given subcommand(s)
198 let cmd = Command::new("clap-test").version("2.6").subcommand(
215 help Print this message or the help of the given subcommand(s)
224 .subcommand(Command::new("test").about("Some help").alias("invisible"));
232 .subcommand(
233 Command::new("module").subcommand(Command::new("install").about("Install module")),
250 .subcommand(Command::new("signer"))
265 .subcommand(Command::new("signer"))
324 .subcommand(Command::new("subcommand"))
326 .try_get_matches_from(vec!["myprog", "--", "subcommand"]);
329 Some("subcommand")
336 .subcommand(Command::new("subcommand"))
356 note: subcommand 'subcmd' exists; to use it, remove the '--' before it
363 let cmd = Command::new("cmd").subcommand(Command::new("subcmd"));
372 .subcommand(Command::new("test"))
379 assert_eq!(m.subcommand().unwrap().0, "test");
386 .subcommand(Command::new("test"))
393 assert_eq!(m.subcommand().unwrap().0, "test");
400 .subcommand(Command::new("global"));
425 .subcommand(Command::new("sub"))
431 "error: unrecognized subcommand 'help'
448 .subcommand(Command::new("busybox").subcommands(applet_commands()))
456 assert_eq!(m.subcommand().unwrap().1.subcommand_name(), Some("true"));
470 .subcommand(Command::new("hostname"))
471 .subcommand(Command::new("dnsdomainname"));
499 .subcommand(Command::new("foo"))
500 .subcommand(Command::new("bar"));
505 error: unrecognized subcommand 'world'
518 error: unrecognized subcommand 'baz'
520 note: subcommand 'bar' exists
552 .subcommand(Command::new("foo"))
553 .subcommand(Command::new("bar"))
574 .subcommand(Command::new("foo").subcommand(Command::new("bar").arg(Arg::new("value"))));
594 .subcommand(Command::new("foo").subcommand(Command::new("bar").arg(Arg::new("value"))));
614 .subcommand(Command::new("foo").subcommand(Command::new("bar").arg(Arg::new("value"))));
627 .subcommand(Command::new("repeat"))
628 .subcommand(Command::new("repeat"))
636 .subcommand(Command::new("repeat"))
637 .subcommand(Command::new("unique").alias("repeat"))