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
Show usage description when using help
for option commands as well
#31
Comments
Could you explain what you mean by this a little bit more? I'm not sure I totally understand what you're saying |
It would be better if e.g. Attempting to use |
While I agree it would be nice to make this more consistent, a change like this would make it impossible to pass 'help' as an argument to a function. For example, if you were implementing a CLI like git and had a file named 'help', you would be unable to run |
I am fine with not using |
public protocol OptionCommand: Command {
...
/// Whether help for the command should be shown when -h is passed. Default is true.
var helpOnHFlag: Bool { get }
...
} If |
It would be nice if prompting for the usage description was consistent for different types of commands. In some places you can type
cmd help
and other times you have to typecmd subCommand -h
. It isn't consistent and can confuse the user IMO.The text was updated successfully, but these errors were encountered: