aboutsummaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'command.go')
-rw-r--r--command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.go b/command.go
index 71f7878..7b660ba 100644
--- a/command.go
+++ b/command.go
@@ -51,7 +51,7 @@ func (c *Command) eval(args []string) error {
return cmd.eval(rest)
}
}
- if err := c.Flags().Parse(rest); err != nil { return err }
+ if err := c.Flags().Parse(args); err != nil { return err }
if c.Run != nil {
c.Run(c, rest)
} else {