We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.group(key(s), groupName) Given a key, or an array of keys, places options under an alternative heading when displaying usage instructions, e.g.,
.group(key(s), groupName)
require('yargs/yargs')(['--help']) .help() .group('batman', 'Heroes:') .describe('batman', "world's greatest detective") .wrap(null) .argv
Output:
Heroes: --batman world's greatest detective Options: --help Show help [boolean]
The text was updated successfully, but these errors were encountered:
#991: group command-options in --help to make it easier to read
ab36858
Closed by #996.
Sorry, something went wrong.
JoernBerkefeld
Successfully merging a pull request may close this issue.
.group(key(s), groupName)
Given a key, or an array of keys, places options under an alternative heading when displaying usage instructions, e.g.,
Output:
The text was updated successfully, but these errors were encountered: