documentationjs / documentationjs/zeroarg
Multi-command
Open
- Dominant language
- JavaScript
- Stars
- 19
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
:wave:
From ur blog:
> Supporting multiple commands as multiple functions
Curious how you'd think about structuring this? Something like this?
```js
/**
* top-level help here
*/
module.exports = {
/**
* one command's help
*/
commandA: function(a, b, c) { ... },
/**
* another command's help
*/
commandB: function(a, b, c) { ... }
}
```
Would this then support:
```
cli --help
cli commandA --help
cli commandB --help
```
Could the nesting go into deeper sub-commands?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.