You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see a pressing need for --help as a command. There is some precedent in curl --help all but I think this can be supported by making all an optional argument of the --help option. IIRC, GNU getopt_long parses an optional argument of a long option only if connected with an equals sign as in --help=all; if System.CommandLine is made to also behave this way, i.e. parse --help all as an option followed by an unrelated argument, then application developers should still be able to override this behavior by giving the --help option a custom parser that consumes the all token even if not connected.
There is the convention of a login shell getting an argv[0] that starts with a hyphen. For example, -bash. That should then be allowed in the root command name, too. But the .NET Runtime does not currently pass the string through to applications (#2365, dotnet/runtime#30212).
Hyphens in command names would be allowed.
Do we want to do things like allowing --help to be a command?
The text was updated successfully, but these errors were encountered: