Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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 |
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?