max-mapper / max-mapper/subcommand
"Cannot read property 'usage' of undefined" when using usage propery in config
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 42
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
index.js:33 expects rootClic to be defined but this doesn't always happen.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at index.js:33 and reproduce the error with a config that uses the usage property, paying attention to cases where rootClic is not defined. Trace how the CLI handles that missing value; done means using the usage property no longer raises "Cannot read property 'usage' of undefined" when rootClic is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100