chalk icon indicating copy to clipboard operation
chalk copied to clipboard

Consider improving output for `chalk help help` and `chalk help --help`

Open ee7 opened this issue 2 years ago • 0 comments

Description

These commands output the same thing:

  • chalk
  • chalk help
  • chalk --help
  • chalk help --help

But the output of chalk help help outputs the same information twice.

Chalk lists help as a command in chalk help commands, and says to run chalk help "cmdname" to get help for a command. So a user may try to run chalk help help or chalk help --help to get extra information about using the help command.

Impact

Low impact:

  • A user who runs chalk help help gets duplicated output.
  • A user who runs chalk help help or chalk help --help doesn't get help for the help command.

Steps to Reproduce

Run chalk help help with the latest chalk release (0.3.1).

Other information

4

ee7 avatar Jan 29 '24 11:01 ee7