Skip to content

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

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

Merged
merged 2 commits into from
Jun 23, 2025

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)

@neuecc
Copy link
Member

neuecc commented Jun 23, 2025

Thank you and sorry for (extreme) delayed response.
I'll release soon(maybe today)!

@neuecc neuecc merged commit c03f683 into Cysharp:master Jun 23, 2025
1 check passed
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?
2 participants