Skip to main content

parse_opts_lenient

Function parse_opts_lenient 

Source
pub(crate) fn parse_opts_lenient(
    args: impl IntoIterator<Item = impl Into<OsString>>,
) -> Result<(Opts, Vec<String>), Error>
Expand description

Parse the command line, dropping options cake does not have instead of refusing to start (a legacy scx_loader flag must not keep the scheduler off); dropped tokens are reported once logging is up. Real errors keep clap’s.