ConsoleAppFramework icon indicating copy to clipboard operation
ConsoleAppFramework copied to clipboard

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

Open Simonl9l opened this issue 1 year ago • 1 comments

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?

Simonl9l avatar Sep 04 '24 00:09 Simonl9l

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

neuecc avatar Sep 09 '24 10:09 neuecc

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

filzrev avatar Dec 20 '24 00:12 filzrev

@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!

Simonl9l avatar Mar 09 '25 00:03 Simonl9l