Explain the `--color` option in a comment (#434)

master
Simon Lydell 2017-01-23 22:29:57 +01:00 committed by James Long
parent 4ce637d69c
commit c230562f65
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,10 @@ const argv = minimist(process.argv.slice(2), {
"single-quote",
"trailing-comma",
"bracket-spacing",
// See https://github.com/chalk/supports-color/#info
// The supports-color package (a sub sub dependency) looks directly at
// `process.argv` for `--no-color` and such-like options. The reason it is
// listed here is to avoid "Ignored unknown option: --no-color" warnings.
// See https://github.com/chalk/supports-color/#info for more information.
"color",
"version",
"debug-print-doc",