0
0
Fork 0

first parameter of args ignored

When prsing the flags, instead of parsing everything given, only the
rest was parsed.
This commit is contained in:
Gibheer 2015-03-24 21:02:13 +01:00
parent 3e34c17449
commit c69f4de8ce
1 changed files with 1 additions and 1 deletions

View File

@ -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 {