From 4535bb369542786de59e35b8fc327ee7113257fe Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sun, 4 May 2025 14:00:02 +0300 Subject: [PATCH] Update tldr.py --- tldr.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tldr.py b/tldr.py index d11b237..161e960 100755 --- a/tldr.py +++ b/tldr.py @@ -670,13 +670,12 @@ def main() -> None: options = parser.parse_args() display_option_length = "long" - if not (options.short_options or options.long_options): - if os.environ.get('TLDR_OPTIONS') == "short": - display_option_length = "short" - elif os.environ.get('TLDR_OPTIONS') == "long": - display_option_length = "long" - elif os.environ.get('TLDR_OPTIONS') == "both": - display_option_length = "both" + if os.environ.get('TLDR_OPTIONS') == "short": + display_option_length = "short" + elif os.environ.get('TLDR_OPTIONS') == "long": + display_option_length = "long" + elif os.environ.get('TLDR_OPTIONS') == "both": + display_option_length = "both" if options.short_options: display_option_length = "short" if options.long_options: