Home
last modified time | relevance | path

Searched refs:subcmds (Results 1 – 8 of 8) sorted by relevance

/third_party/rust/crates/clap/clap_complete/src/shells/
Dbash.rs67 subcmds = all_subcommands(cmd), in generate()
81 subcmds: &mut Vec<(String, String, String)>, in all_subcommands()
88 subcmds.push(( in all_subcommands()
94 subcmds.push(( in all_subcommands()
101 add_command(&fn_name, subcmd, subcmds); in all_subcommands()
104 let mut subcmds = vec![]; in all_subcommands() localVariable
107 add_command(&fn_name, subcmd, &mut subcmds); in all_subcommands()
109 subcmds.sort(); in all_subcommands()
112 for (parent_fn_name, name, fn_name) in subcmds { in all_subcommands()
/third_party/alsa-utils/axfer/
Dmain.c20 enum subcmds { enum
84 static bool decide_subcmd(int argc, char *const *argv, enum subcmds *subcmd) in decide_subcmd()
88 enum subcmds subcmd; in decide_subcmd()
97 enum subcmds subcmd; in decide_subcmd()
202 static bool detect_subcmd(int argc, char *const *argv, enum subcmds *subcmd) in detect_subcmd()
204 static const char *const subcmds[] = { in detect_subcmd() local
215 for (i = 0; i < ARRAY_SIZE(subcmds); ++i) { in detect_subcmd()
216 if (!strcmp(argv[1], subcmds[i])) { in detect_subcmd()
247 enum subcmds subcmd; in main()
/third_party/node/deps/npm/node_modules/dashdash/etc/
Ddashdash.bash_completion.in102 local shortopts longopts optargs subcmds allsubcmds argtypes
106 subcmds="$(eval "echo \${cmd${context}_subcmds}")"
115 trace " subcmds: $subcmds"
255 compgen $compgen_opts -W "$subcmds" -- "$word"
258 compgen $compgen_opts -W "$subcmds" -- "$word"
261 compgen $compgen_opts -W "$shortopts $longopts $subcmds" -- "$word"
/third_party/rust/crates/clap/clap_complete/src/generator/
Dutils.rs10 let mut subcmds: Vec<_> = subcommands(cmd); in all_subcommands() localVariable
13 subcmds.extend(sc_v); in all_subcommands()
16 subcmds in all_subcommands()
40 let mut subcmds = vec![]; in subcommands() localVariable
51 subcmds.push((sc.get_name().to_string(), sc_bin_name.to_string())); in subcommands()
54 subcmds in subcommands()
/third_party/rust/crates/clap/src/output/
Dhelp_template.rs48 let subcmds = self.template.cmd.has_visible_subcommands(); in write_help() localVariable
50 let template = if non_pos || pos || subcmds { in write_help()
350 let subcmds = self.cmd.has_visible_subcommands(); in write_all_args() localVariable
360 if subcmds { in write_all_args()
/third_party/node/deps/npm/node_modules/dashdash/
DCHANGES.md87 hidden subcmds.
/third_party/rust/crates/clap/src/builder/
Dcommand.rs417 pub fn subcommands(mut self, subcmds: impl IntoIterator<Item = impl Into<Self>>) -> Self { in subcommands()
418 for subcmd in subcmds { in subcommands()
/third_party/rust/crates/clap/
DCHANGELOG.md2885 * **AppSettings:** fixes bug where subcmds didn't receive parent ver ([a62e4527](https://github.co…
2914 * **SubCommands:** fixed where subcmds weren't recognized after mult args ([c19c17a8](https://gith…
3215 * allows defining hidden args and subcmds ([2cab4d03](https://github.com/clap-rs/clap/commit/2cab…