File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -670,13 +670,12 @@ def main() -> None:
670
670
options = parser .parse_args ()
671
671
672
672
display_option_length = "long"
673
- if not (options .short_options or options .long_options ):
674
- if os .environ .get ('TLDR_OPTIONS' ) == "short" :
675
- display_option_length = "short"
676
- elif os .environ .get ('TLDR_OPTIONS' ) == "long" :
677
- display_option_length = "long"
678
- elif os .environ .get ('TLDR_OPTIONS' ) == "both" :
679
- display_option_length = "both"
673
+ if os .environ .get ('TLDR_OPTIONS' ) == "short" :
674
+ display_option_length = "short"
675
+ elif os .environ .get ('TLDR_OPTIONS' ) == "long" :
676
+ display_option_length = "long"
677
+ elif os .environ .get ('TLDR_OPTIONS' ) == "both" :
678
+ display_option_length = "both"
680
679
if options .short_options :
681
680
display_option_length = "short"
682
681
if options .long_options :
You can’t perform that action at this time.
0 commit comments