oa_gateway_bench::cli

Function parse_args

Source
pub(crate) fn parse_args<I>(args: I) -> Result<Command, String>
where I: IntoIterator<Item = String>,
Expand description

Parses arguments after the program name.

ยงErrors

Returns a message if the command is missing, a flag is unknown, or a value cannot be parsed.