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

feat: Add HiddenAttribute to hide specific command/parameter #171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Mar 10, 2025

This PR intended to fix #142

HiddenAttribute's behaviors

  1. When [Hidden] attribute is set on command. It hide command from command list.
    It can show hidden command help when explicitly specify hidden command name with --help parameter
  2. When [Hidden] attribute is set on command parameter. It hide parameter from command help.
    Note: When both [Argument]/[Hidden] attribute set. It silently ignore Hidden attribute.
    (Because it's positional parameter)

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.

[Question] Configuration to hide a command in/from --help?
1 participant