Add support for masks
This commit is contained in:
@@ -171,7 +171,7 @@ impl<S, E> FromArguments<S, E> for bool {
|
||||
}
|
||||
}
|
||||
|
||||
match arg {
|
||||
match arg.to_lowercase().as_str() {
|
||||
"y" | "yes" | "on" | "true" | "t" | "1" => Ok((true, rest)),
|
||||
"n" | "no" | "off" | "false" | "f" | "0" => Ok((false, rest)),
|
||||
_ => Err(ArgumentParsingError::InvalidArgument),
|
||||
|
||||
Reference in New Issue
Block a user