Show help on native commands when -h is provided
@@ -435,12 +435,12 @@ func credentialsChanged(details *coreConfig.ServerDetails) bool {
// This function checks whether the command received --help as a single option.
// If it did, the command's help is shown and true is returned.
-// This function should be uesd iff the SkipFlagParsing option is used.
+// This function should be used iff the SkipFlagParsing option is used.
func ShowCmdHelpIfNeeded(c *cli.Context) (bool, error) {
if len(c.Args()) != 1 {
return false, nil
}
- if c.Args()[0] == "--help" {
+ if c.Args()[0] == "--help" || c.Args()[0] == "-h" {
err := cli.ShowCommandHelp(c, c.Command.Name)
return true, err
}
