From ff4a381d80f211c71732dddbe96d5ccdb99794bc Mon Sep 17 00:00:00 2001 From: Austin Riendeau Date: Sun, 13 Sep 2015 18:00:17 -0600 Subject: [PATCH] adds check to see if command name and os.Args[0] is the same before applying os.Args as it was leading appending false arguments from the test suite --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index 3ccafcca..08aa507f 100644 --- a/command.go +++ b/command.go @@ -566,7 +566,7 @@ func (c *Command) Execute() (err error) { var args []string - if len(c.args) == 0 { + if len(c.args) == 0 && os.Args[0] == c.Name() { args = os.Args[1:] } else { args = c.args