File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -277,12 +277,12 @@ impl Cli {
277
277
None
278
278
} ;
279
279
280
- if let Some ( should_hide_logo) = matches. value_of ( "hide-logo" ) {
280
+ if let Some ( should_hide_logo) = matches. value_of ( "hide-logo" ) . or ( Some ( "auto" ) ) {
281
281
if should_hide_logo == "true" {
282
282
art_off = true ;
283
283
} else if should_hide_logo == "false" {
284
284
art_off = false ;
285
- } else {
285
+ } else if !art_off {
286
286
if let Some ( ( width, _) ) = term_size:: dimensions_stdout ( ) {
287
287
art_off = width <= max_term_size;
288
288
} else {
@@ -294,18 +294,6 @@ impl Cli {
294
294
art_off = false ;
295
295
}
296
296
}
297
- } else if !art_off {
298
- // Default to auto without setting it in the CLI args
299
- if let Some ( ( width, _) ) = term_size:: dimensions_stdout ( ) {
300
- art_off = width <= max_term_size;
301
- } else {
302
- std:: println!(
303
- "{}" ,
304
- ( "Coult not get terminal width. ASCII art will be displayed." ) . yellow( ) ,
305
- ) ;
306
-
307
- art_off = false ;
308
- }
309
297
}
310
298
311
299
if image. is_some ( ) && image_backend. is_none ( ) {
You can’t perform that action at this time.
0 commit comments