chalk icon indicating copy to clipboard operation
chalk copied to clipboard

`chalk load --help` produces an error, unlike `chalk help load`

Open ee7 opened this issue 2 years ago • 0 comments

Description

chalk help load works as expected:

$ chalk help load
 load command
 Load a new configuration into the chalk binary

...

However, chalk load --help produces an error:

$ chalk load --help
error: chalk: When parsing command 'load': Too few arguments (expected 1)

chalk help <cmd> and chalk <cmd> --help currently do the same thing for every command except:

  • load (this issue)
  • help: https://github.com/crashappsec/chalk/issues/168
  • docgen: https://github.com/crashappsec/chalk/issues/170

I'd suggest that they always do the same thing.

Impact

A user who runs chalk load --help doesn't get help for load.

Steps to Reproduce

Run chalk load --help with chalk 0.3.1.

ee7 avatar Jan 29 '24 12:01 ee7