Return nil error in validateRequiredFlags when help command

This commit is contained in:
Marco Davalos 2019-03-28 17:56:37 +01:00
parent 67fc4837d2
commit 97032908c6

View file

@ -879,6 +879,10 @@ func (c *Command) ValidateArgs(args []string) error {
}
func (c *Command) validateRequiredFlags() error {
if c.Name() == "help" {
return nil
}
flags := c.Flags()
missingFlagNames := []string{}
flags.VisitAll(func(pflag *flag.Flag) {