diff --git a/parse.go b/parse.go index 7df1729..a365d82 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 nil + return err } return err }