Skip to content

Commit

Permalink
Fixed command run bug/oversight.
Browse files Browse the repository at this point in the history
  • Loading branch information
Urethramancer committed Nov 10, 2023
1 parent f5b38e0 commit d892130
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arg/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d892130

Please sign in to comment.