diff --git a/command.go b/command.go index d6de8c6..17a5eac 100644 --- a/command.go +++ b/command.go @@ -637,7 +637,7 @@ func (c *Command) Flags() *flag.FlagSet { c.flagErrorBuf = new(bytes.Buffer) } c.flags.SetOutput(c.flagErrorBuf) - c.flags.BoolVar(&c.helpFlagVal, "help", false, "help for "+c.Name()) + c.PersistentFlags().BoolVarP(&c.helpFlagVal, "help", "h", false, "help for "+c.Name()) } return c.flags }