Skip to main content

parse_level

Function parse_level 

Source
pub fn parse_level(flag: &'static str, text: &str) -> Result<LogLevel, CliError>
Expand description

Parses a --level argument, accepting the spellings a user types.

ยงErrors

crate::error::CliError::BadArgument naming the accepted values.