pub fn cli_parse_output(s: &str) -> Result<OutputFormat, String>Expand description
Parse --output flag value into OutputFormat.
Returns Err with a message suitable for passing to build_cli_error on unknown values.
use agent_first_data::{cli_parse_output, OutputFormat};
assert!(matches!(cli_parse_output("json"), Ok(OutputFormat::Json)));
assert!(cli_parse_output("xml").is_err());