Skip to main content

parse_args

Function parse_args 

Source
pub(crate) fn parse_args() -> Result<Args, String>
Expand description

Read the command line into Args.

A browser has no command line: std::env::args() is empty there, and argh refuses to parse without a program name. Supplying one leaves every option at its default, which is what a browser build runs with.