crashappsec / crashappsec/chalk
`chalk load --help` produces an error, unlike `chalk help load`
- Dominant language
- Nim
- Stars
- 436
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
## Description
`chalk help load` works as expected:
```console
$ chalk help load
load command
Load a new configuration into the chalk binary
...
```
However, `chalk load --help` produces an error:
```console
$ chalk load --help
error: chalk: When parsing command 'load': Too few arguments (expected 1)
```
`chalk help ` and `chalk --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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `chalk help load` and `chalk load --help` with Chalk 0.3.1, then trace the CLI command-parsing and help-handling entry points for `load`. Compare the behavior with another command where both forms work. Done means `chalk load --help` displays the `load` help instead of reporting that an argument is missing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nim
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100