Visible subcommand names of a node, in declaration order. clap's auto-generated `help` subcommand is excluded: it is not a verb an agent should ever choose, and `vault/removed.rs` — the shim this key is borrowed from — does not list it either.
(node: &clap::Command)
| 566 | /// agent should ever choose, and `vault/removed.rs` — the shim this key is |
| 567 | /// borrowed from — does not list it either. |
| 568 | fn verbs(node: &clap::Command) -> Vec<String> { |
| 569 | node.get_subcommands() |
| 570 | .filter(|c| !c.is_hide_set() && c.get_name() != "help") |
| 571 | .map(|c| c.get_name().to_string()) |
| 572 | .collect() |
| 573 | } |
| 574 | |
| 575 | /// Render a clap parse failure as `key: value` lines. |
| 576 | /// |