From b300dfb3d75fe76e2ddbb087ff742dd0b5e6155b Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 7 Dec 2021 15:34:20 -0800 Subject: [PATCH] Add support for NO_COLOR env variable --- jc/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/cli.py b/jc/cli.py index a81a1c32..8b9bd286 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -526,7 +526,7 @@ def main(): about = 'a' in options debug = 'd' in options 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 pretty = 'p' in options quiet = 'q' in options