1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

refactor NO_COLOR test

This commit is contained in:
Kelly Brazil
2021-12-07 15:45:11 -08:00
parent d03fb8b626
commit 82e0160de8

View File

@ -526,7 +526,7 @@ def main():
about = 'a' in options about = 'a' in options
debug = 'd' in options debug = 'd' in options
verbose_debug = options.count('d') > 1 verbose_debug = options.count('d') > 1
mono = bool('m' in options or os.getenv('NO_COLOR')) mono = 'm' in options or bool(os.getenv('NO_COLOR'))
help_me = 'h' in options help_me = 'h' in options
pretty = 'p' in options pretty = 'p' in options
quiet = 'q' in options quiet = 'q' in options