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
Hide subcommand argument #978
Comments
Would you rather hide it than add the |
I'd prefer to hide it to simplify the top level help message. There isn't a default value. Its arity is |
I'm looking for the ability to also hide both arguments and options from commands (either main or sub commands). My use case: I'm building a public CLI that others can use but it will also be used by another application (which I control). There are certain args/options that I only want this other application to use and know about. So when an end user queries the help I don't want those args/options to be output to the command line (mostly because it will add noise and confusion as an end user wouldn't know how these args/options are meant to be used). Thanks |
Also, if this is something where you would consider accepting a PR I'd be happy to try and work this out. It seems like it could be as simple as adding an |
@StevenRasmussen There's an We'd absolutely appreciate a PR as long as we agree on the goal. |
@jonsequitur - Doh! I totally missed that 🤦♂️. Does exactly what I need! Thanks! |
Was this rejected? |
Nope. We're making the help API more flexible via #1229 which will make this kind of fine-grained customization easier. |
I'm building a CLI similar to
dotnet
where each subcommand has an optional argument. The top level help message looks like the following:I think this looks a bit messy and confusing - the argument seems to be required (
<>
) rather than optional ([<>]
). Is it possible to hide the argument here?The text was updated successfully, but these errors were encountered: