pub fn parse_passthrough<T: Parser>(app: &App) -> Result<T>Expand description
Parse a passthrough command’s trailing tokens into its clap Parser.
Reads App::trailing_args, prepends the command’s declared name as a
synthetic argv[0] (so --help/usage render correctly), and parses.
On --help/--version the rendered text is printed and the process
exits 0 — matching clap’s own Parser::parse contract. Other parse
failures are returned as a miette::Report for the caller to ?.
§Errors
Returns the clap parse error (as a miette diagnostic) when the
trailing tokens do not satisfy T.