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

Added the ability to hide CommandOptions. #642

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

twaalewijn
Copy link
Contributor

CommandOptions now has an IsHidden property that, when set to true, will cause the option to be hidden from the following cases:

  • Help text using -h|--help
  • Xml representations generated with the cli xml command
  • Diagnostics displayed with the cli explain command

Hidden options can still be outputted with cli explain using the --hidden option that is also used to display hidden commands.

Fixes #631

CommandOptions now has an IsHidden property that, when set to true, will cause the option to be hidden from the following cases:

- Help text using `-h|--help`
- Xml representations generated with the `cli xml` command
- Diagnostics displayed with the `cli explain` command

Hidden options can still be outputted with `cli explain` using the `--hidden` option that is also used to display hidden commands.

Fixes spectreconsole#631
@CLAassistant
Copy link

CLAassistant commented Nov 28, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@nils-a nils-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nils-a nils-a merged commit 2e5d18f into spectreconsole:main Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the ability to hide CommandOptions
3 participants