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

Add support for NO_COLOR env variable

This commit is contained in:
Kelly Brazil
2021-12-07 15:34:20 -08:00
parent f7cb5f7d01
commit b300dfb3d7

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 = 'm' in options mono = bool('m' in options or 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