From c69f4de8ce0ada8c99df1543039f188f845cf342 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Tue, 24 Mar 2015 21:02:13 +0100 Subject: first parameter of args ignored When prsing the flags, instead of parsing everything given, only the rest was parsed. --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3-70-g09d2