You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.help("Will hide the logo if true. If set to auto, the logo will be hidden if the terminal size is too small. If set to false, the logo will be shown no matter what.")
237
-
.conflicts_with("off")
228
+
.default_value("95")
229
+
.help("If ASCII logo should be hidden when terminal width is below WIDTH_THRESHOLD.")
230
+
.validator(
231
+
|t| {
232
+
t.parse::<u32>()
233
+
.map_err(|_t| "must be a number")
234
+
.map(|_t|())
235
+
.map_err(|e| e.to_string())
236
+
},
237
+
)
238
238
).get_matches();
239
239
240
240
let no_bold = matches.is_present("no-bold");
241
241
let no_merges = matches.is_present("no-merge-commits");
242
242
let no_color_palette = matches.is_present("no-color-palette");
243
243
let print_languages = matches.is_present("languages");
244
244
let print_package_managers = matches.is_present("package-managers");
245
-
letmut art_off = matches.is_present("off");
245
+
letmut art_off = false;
246
246
let true_color = cli_utils::is_truecolor_terminal();
247
-
let max_term_size = 95;
248
-
249
-
// The --off flag was passed in
250
-
if art_off {
251
-
std::println!(
252
-
"{}",
253
-
("The --off option is deprecated. Use \"--hide-logo true\" instead.").yellow(),
254
-
);
255
-
}
247
+
let max_term_size:usize = matches.value_of("hide-logo").unwrap().parse().unwrap();
256
248
257
249
let fields_to_hide:Vec<String> = ifletSome(values) = matches.values_of("disable-fields")
0 commit comments