Lines Matching refs:subcmd

268     ///         .mut_subcommand("bar", |subcmd| subcmd.disable_help_flag(true));
287 let subcmd = if let Some(idx) = pos {
293 self.subcommands.push(f(subcmd));
387 pub fn subcommand(self, subcmd: impl Into<Command>) -> Self {
388 let subcmd = subcmd.into();
389 self.subcommand_internal(subcmd)
392 fn subcommand_internal(mut self, mut subcmd: Self) -> Self {
395 subcmd.disp_ord.get_or_insert(current);
398 self.subcommands.push(subcmd);
418 for subcmd in subcmds {
419 self = self.subcommand(subcmd);
2088 /// // Assume there is an external subcommand named "subcmd"
2106 /// // Assume there is an external subcommand named "subcmd"
2125 /// // Assume there is an external subcommand named "subcmd"
2144 /// // Assume there is an external subcommand named "subcmd"
2720 /// // Assume there is an external subcommand named "subcmd"
2724 /// "myprog", "subcmd", "--option", "value", "-fff", "--flag"
2732 /// assert_eq!(external, "subcmd");
2764 /// // Assume there is an external subcommand named "subcmd"
2768 /// "myprog", "subcmd", "--option", "value", "-fff", "--flag"
2776 /// assert_eq!(external, "subcmd");
2786 /// // Assume there is an external subcommand named "subcmd"
2790 /// "myprog", "subcmd", "--option", "value", "-fff", "--flag"
2798 /// assert_eq!(external, "subcmd");
2817 /// as `<cmd> [cmd_args] <subcmd> [subcmd_args] <subsubcmd> [subsubcmd_args]`.
2823 /// * `<cmd> <subcmd> <subsubcmd> [subsubcmd_args]`
2824 /// * `<cmd> <subcmd> [subcmd_args]`
3823 for subcmd in self.get_subcommands_mut() {
3824 subcmd._build_recursive(expand_help_tree);
4175 // `myapp help subcmd <TAB>`, which should only suggest subcommands and not args,
4607 // `cmd subcmd --help` for more.