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

[Question] Configuration to hide a command in/from --help? #142

Open
Simonl9l opened this issue Sep 4, 2024 · 3 comments · May be fixed by #171
Open

[Question] Configuration to hide a command in/from --help? #142

Simonl9l opened this issue Sep 4, 2024 · 3 comments · May be fixed by #171

Comments

@Simonl9l
Copy link

Simonl9l commented Sep 4, 2024

There are cases where a CLI may have a command that is hidden from the help --help as it is not intended for general use.

On a detailed review of the Readme, I don't see anything related to this. Cocona happens to offers this as a feature with a [Hidden] attribute. Is this something that is, or otherwise can be, similarly supported within the framework approach?

@neuecc
Copy link
Member

neuecc commented Sep 9, 2024

I see, that's a good feature too.
I'd like to consider providing HiddenAttribute.

@filzrev
Copy link
Contributor

filzrev commented Dec 20, 2024

I'm also wants this feature.
On my case. It's expected to be used to implement shell completion feature.(Related to #145)

Examples

  1. .NET CLI (dotnet complete command)
    https://learn.microsoft.com/en-us/dotnet/core/tools/enable-tab-autocomplete
  2. GitHub CLI (gh __complete command)
    https://cli.github.com/manual/gh_completion

@Simonl9l
Copy link
Author

Simonl9l commented Mar 9, 2025

@fi@filzrev - would be great to see someone perhaps submit a PR for this/shell completion, on basis that @neuecc would accept such a PR!

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 a pull request may close this issue.

3 participants