Skip to main content

extract_output_format

Function extract_output_format 

Source
pub fn extract_output_format(args: &[impl AsRef<str>]) -> String
Expand description

Extracts output format from raw args.

Recognizes --output <format> / -o <format> / --output=<format>, plus --json, --toon, and --human as shorthand for their respective formats.