pub fn parse_subcommands(
full_stdout: &str,
full_stderr: &str,
) -> Vec<SubcommandSpec>Expand description
Attempt to parse subcommands from the full help text (stdout+stderr, as strings).
Heuristic:
- Look for a section header like “SUBCOMMANDS”, “Subcommands”, “Commands”.
- Then look at following indented lines of form: subcmd Description… or: subcmd Longer description…