Skip to main content

parse_cmdline

Function parse_cmdline 

Source
pub fn parse_cmdline<T, F, W>(
    cmdline: &str,
    log: &mut W,
    opts: &mut T,
    parse_option: F,
) -> Result<(), Error>
where W: Write + ?Sized, F: FnMut(&str, &str, &mut T) -> bool,
Expand description

Parses command-line arguments starting with “userboot”, passing each key-value pair to parse_option and logging recognized options or warnings.