diff --git a/parse.go b/parse.go index a365d8260f..7df17296a4 100644 --- a/parse.go +++ b/parse.go @@ -21,7 +21,7 @@ func parseIter(set *flag.FlagSet, ip iterativeParser, args []string, shellComple err := set.Parse(args) if !ip.useShortOptionHandling() || err == nil { if shellComplete { - return err + return nil } return err }