We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea973a3 commit e1fc48bCopy full SHA for e1fc48b
tldr.py
@@ -640,9 +640,15 @@ def main() -> None:
640
parser = create_parser()
641
642
options = parser.parse_args()
643
-
644
- short = options.shortform
645
- long = options.longform
+ short = False
+ long = False
+ if not (options.shortform or options.longform):
646
+ short = int(os.environ.get('TLDR_SHORTFORM', '0')) > 0
647
+ long = int(os.environ.get('TLDR_LONGFORM', '0')) > 0
648
+ elif options.shortform:
649
+ short = True
650
+ elif options.longform:
651
+ long = True
652
colorama.init(strip=options.color)
653
if options.color is False:
654
os.environ["FORCE_COLOR"] = "true"
0 commit comments