Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled colorization when called with --files option, added docs #210

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Options
* `--csv` output in csv format.
* `--csvComponentPrefix` prefix column for component in csv format.
* `--out [filepath]` write the data to a specific file.
* `--files [path]` copy all license files to path and rename them to `module-name`@`version`-LICENSE.txt.
* `--customPath` to add a custom Format file in JSON
* `--exclude [list]` exclude modules which licenses are in the comma-separated list from the output
* `--relativeLicensePath` output the location of the license files as relative paths
Expand Down
3 changes: 2 additions & 1 deletion bin/license-checker
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ if (args.help) {
' --csv output in csv format.',
' --csvComponentPrefix column prefix for components in csv file',
' --out [filepath] write the data to a specific file.',
' --files [path] copy all license files to path and rename them to <module-name>@<version>-LICENSE.txt.',
' --customPath to add a custom Format file in JSON',
' --exclude [list] exclude modules which licenses are in the comma-separated list from the output',
' --relativeLicensePath output the location of the license files as relative paths',
Expand Down Expand Up @@ -105,5 +106,5 @@ checker.init(args, function(err, json) {
});

function shouldColorizeOutput(args) {
return args.color && !args.out && !(args.csv || args.json || args.markdown);
return args.color && !args.out && !args.files && !(args.csv || args.json || args.markdown);
}