Print help programmatically
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 278
- PR merge metrics
- No merged PRs in 30d
Description
I'm wondering if there is a way (or if you can add a way) to print the help text with a command, instead of waiting for the user to fuck up the input or type help. I'd like the user to get a list of command (the help text) when the app first launches without any input first.
Perhaps something like vorpal.help() to print the main help or vorpal.help("mycommand") to print the help for a command. In the code you can detect the input type and if it's a function it would work as currently designed and create custom help text. If input is empty string, print main help, if it's a string, print help for string if matching command exists, if not, print main help or error out
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.