Make the style match realy case insensitive. (#51)
This commit is contained in:
parent
c43b3a7661
commit
537ba67cc9
@ -183,7 +183,7 @@ fn main() -> std::io::Result<()> {
|
||||
.values_of("LOAD_PATH")
|
||||
.map_or_else(Vec::new, |vals| vals.map(Path::new).collect());
|
||||
|
||||
let style = match matches.value_of("STYLE").unwrap() {
|
||||
let style = match &matches.value_of("STYLE").unwrap().to_lowercase() as &str {
|
||||
"expanded" => OutputStyle::Expanded,
|
||||
"compressed" => OutputStyle::Compressed,
|
||||
_ => unreachable!(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user