Skip to main content

parse_help_output

Function parse_help_output 

Source
pub fn parse_help_output(output: &str) -> Vec<FlagAlias>
Expand description

Parse help output text and extract short/long flag pairs.

Recognizes common CLI framework formats:

  • -f, --force description (clap, cobra, argparse)
  • --force, -f description (reverse order)
  • -n, --dry-run (git man pages)