Skip to main content

parse_exit

Function parse_exit 

Source
fn parse_exit(args: SplitAsciiWhitespace<'_>) -> Result<CliAction, String>
Expand description

Parses arguments to construct an [CliAction::Exit] instance.

§Arguments

  • args - Iterator over the remaining whitespace-separated arguments

§Errors

Returns an error string if an invalid argument is provided.