We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbdcadf commit 1ef0913Copy full SHA for 1ef0913
command.go
@@ -635,7 +635,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
635
var args []string
636
637
// Workaround FAIL with "go test -v" or "cobra.test -test.v", see #155
638
- if len(c.args) == 0 && filepath.Base(os.Args[0]) != "cobra.test" {
+ if c.args == nil && filepath.Base(os.Args[0]) != "cobra.test" {
639
args = os.Args[1:]
640
} else {
641
args = c.args
0 commit comments