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