question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI option --color is missing in documentation

See original GitHub issue

The command line option --color is actually useful to enforce ANSI color codes when outputting to a pipe, e.g. in a Grunt task.

Apparently, this options is supported in ESLint 2.8.0, but it’s missing in the online doc and also in the output of

eslint -h

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
nzakascommented, Apr 24, 2016

@ralfstx @meeber as I mentioned above, our tool for handling CLI output, optionator, does not support outputting both options. We use this both on the command line and to generate the documentation, so this isnt a matter of just updated the docs.

If anyone has a suggestion for how to overcome that limitation, we are open to suggestions.

Also, keep in mind that we have almost 200 open issues. We can’t fix every issue that is filed, so we need to prioritize and close issues that we don’t intend to address. That may be frustrating, and that’s unfortunate. I just ask you to keep in mind that the ESLint team is entirely a volunteer team working in their free time on ESLint, and we are doing the best we can.

1reaction
ralfstxcommented, Apr 24, 2016

@platinumazure

the tone in this sentence …

Sorry for that, I didn’t mean to offend anyone. However, it’s frustrating when you take the time to report a minor issue and see it being closed without the issue being addressed.

Can you please provide exact repro steps showing where the absence of --color results in no colors …

Given a file with linting errors, the following command’s output contains colors:

eslint fileWithErrors.js

while the following command does not:

eslint fileWithErrors.js | cat

It’s all expected behavior, I’m just asking to add --colors to the documentation. If you point me to the source file, I’m happy to provide a pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Annotated List of Command-line Options - ImageMagick
Below is list of command-line options recognized by the ImageMagick ... Extract: Copies the alpha channel values into all the color channels and...
Read more >
API — Click Documentation (8.1.x)
All positional arguments are passed as parameter declarations to Option ... By default Click will remove color if the output does not look...
Read more >
Command Line Interface — Schemathesis 3.17.5 documentation
Schemathesis supports colorless output via the NO_COLOR <https://no-color.org/> environment variable or the --no-color CLI option.
Read more >
Vault Commands (CLI) - HashiCorp Developer
CLI Command Structure​​ Each command is represented as a command or subcommand, and there are a number of command and subcommand options available:...
Read more >
Command Line Interface (CLI) - Stylelint
Use npx stylelint --help to print the CLI documentation. ... Force enabling/disabling of color. ... You can repeat the option to provide multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found