parse_arguments

Function parse_arguments 

Source
pub fn parse_arguments(
    full_stdout: &str,
    full_stderr: &str,
    usage_blocks: &[String],
) -> Vec<ArgumentSpec>
Expand description

Attempt to parse arguments/parameters from usage blocks and Arguments sections.

Strategy:

  • Parse usage lines for argument patterns: <ARG>, [ARG], <ARG>...
  • Extract from “Arguments:” sections in help text
  • Infer types from placeholders (<FILE>, <PORT>, <URL>)
  • Extract descriptions from help text