diff --git a/command.go b/command.go index 558fed45..349190d2 100644 --- a/command.go +++ b/command.go @@ -618,7 +618,7 @@ func (c *Command) Execute() (err error) { var args []string - if len(c.args) == 0 && os.Args[0] == c.Name() { + if len(c.args) == 0 && strings.Contains(os.Args[0], c.Name()) { args = os.Args[1:] } else { args = c.args