diff --git a/arg/parse.go b/arg/parse.go index 2612267..377c330 100644 --- a/arg/parse.go +++ b/arg/parse.go @@ -77,8 +77,7 @@ func (opt *Options) parseArgs(args []string) error { } cmd.Options.Args = args[i+1:] - fn(cmd.Options) - return ErrRunCommand + return fn(cmd.Options) } if len(arg) < 2 && len(pos) < 0 {