Skip to content
New issue

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

[TASK] use yargs group to set special command options aside from the generic ones #991

Closed
JoernBerkefeld opened this issue Jun 14, 2023 · 1 comment · Fixed by #996 or #1023
Closed
Assignees
Labels
chore Jira issue-type "Task" NEW not yet analyzed new issues get this label
Milestone

Comments

@JoernBerkefeld
Copy link
Contributor

.group(key(s), groupName)
Given a key, or an array of keys, places options under an alternative heading when displaying usage instructions, e.g.,

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]
@JoernBerkefeld JoernBerkefeld added chore Jira issue-type "Task" NEW not yet analyzed new issues get this label labels Jun 14, 2023
@JoernBerkefeld JoernBerkefeld self-assigned this Jun 26, 2023
@JoernBerkefeld JoernBerkefeld added this to the 5.1.1 milestone Jun 26, 2023
@github-actions
Copy link

Closed by #996.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment