Make the style match realy case insensitive. (#51)

This commit is contained in:
Johan Smits 2021-09-09 16:14:47 +02:00 committed by Connor Skees
parent c43b3a7661
commit 537ba67cc9

View File

@ -183,7 +183,7 @@ fn main() -> std::io::Result<()> {
.values_of("LOAD_PATH") .values_of("LOAD_PATH")
.map_or_else(Vec::new, |vals| vals.map(Path::new).collect()); .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, "expanded" => OutputStyle::Expanded,
"compressed" => OutputStyle::Compressed, "compressed" => OutputStyle::Compressed,
_ => unreachable!(), _ => unreachable!(),