Skip to main content

parse_args

Function parse_args 

Source
pub fn parse_args(args: &[String]) -> Args
Expand description

Parse argv (excluding the program name). Mirrors TS parseArgs.

Long flags accept --name value or --name=value (the TS parser only handles --name=value for unknown flags; we extend it to known flags for ergonomics). Short flags use a single leading -.