Skip to content

Commit

Permalink
Merge pull request #726 from dertuxmalwieder/patch-3
Browse files Browse the repository at this point in the history
Support NO_COLOR
  • Loading branch information
jarun authored Mar 26, 2024
2 parents 050c67a + d17990f commit 7e994a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buku
Original file line number Diff line number Diff line change
Expand Up @@ -5850,6 +5850,10 @@ POSITIONAL ARGUMENTS:
if args.colorstr is None and colorstr_env is not None:
args.nc = True

# Handle NO_COLOR as well:
if os.environ.get('NO_COLOR') is not None:
args.nc = True

# Handle color output preference
if args.nc:
logging.basicConfig(format='[%(levelname)s] %(message)s')
Expand Down

0 comments on commit 7e994a7

Please sign in to comment.