Skip to main content

parse_args

Function parse_args 

Source
pub fn parse_args(args: &[OsString]) -> Result<Options, String>
Expand description

Parse cordis arguments (after the binary name).

Arguments stay OsString end to end so config paths with non-UTF-8 bytes (legal on Unix filesystems) reach the loader intact instead of being mangled into replacement characters; they are only lossily rendered for usage and error text.