Skip to content
Myr

fixes verbose tests by checking if the first arg belongs to cobra

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Austin Riendeau · committed by Austin Riendeau · parent 0e4c02d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:command.go+1 added-1 removed
616 unmodified lines
617 c.initHelpCmd()618619 var args []string620621 if len(c.args) == 0 {621 if len(c.args) == 0 && os.Args[0] == c.Name() {622 args = os.Args[1:]623 } else {624 args = c.args625 }
553 unmodified lines