Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…to master
  • Loading branch information
HallerPatrick committed Dec 9, 2020
2 parents 2e3760a + 9cb465c commit ffcb73e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/onefetch/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,7 @@ impl Cli {
let no_color_palette = matches.is_present("no-color-palette");
let print_languages = matches.is_present("languages");
let print_package_managers = matches.is_present("package-managers");
let format = if let Some(format) = matches.value_of("format") {
String::from(format)
} else {
String::from("human")
};
let format = matches.value_of("format").map(String::from).unwrap();

let fields_to_hide: Vec<String> = if let Some(values) = matches.values_of("disable-fields")
{
Expand Down

0 comments on commit ffcb73e

Please sign in to comment.