From c230562f65cd95692aca32c8b330cb1bba562d5d Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 23 Jan 2017 22:29:57 +0100 Subject: [PATCH] Explain the `--color` option in a comment (#434) --- bin/prettier.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/prettier.js b/bin/prettier.js index 7b917ac7..076269a9 100755 --- a/bin/prettier.js +++ b/bin/prettier.js @@ -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",