changes to contains rather than equality

This commit is contained in:
Austin Riendeau 2015-11-07 22:36:42 -07:00
parent 62e859a9ed
commit 36ad142ac1

View file

@ -618,7 +618,7 @@ func (c *Command) Execute() (err error) {
var args []string 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:] args = os.Args[1:]
} else { } else {
args = c.args args = c.args