Skip to content

Commit

Permalink
Fixes #64 - Turn off color for --json/markdown/csv options
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Apr 14, 2016
1 parent 86772d2 commit 0720a46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ var setDefaults = function(parsed) {
if (parsed.color === undefined) {
parsed.color = chalk.supportsColor;
}
if (parsed.json || parsed.markdown || parsed.csv) {
parsed.color = false;
}
parsed.start = parsed.start || process.cwd();
parsed.relativeLicensePath = !!parsed.relativeLicensePath;

Expand Down

0 comments on commit 0720a46

Please sign in to comment.