diff --git a/commands/cli/parse_test.go b/commands/cli/parse_test.go index 3685c9f48..fe2c863c3 100644 --- a/commands/cli/parse_test.go +++ b/commands/cli/parse_test.go @@ -268,4 +268,7 @@ func TestArgumentParsing(t *testing.T) { fstdin = fileToSimulateStdin(t, "stdin1") test([]string{"stdinenablednotvariadic2args", "value1"}, fstdin, []string{"value1", "stdin1"}) test([]string{"stdinenablednotvariadic2args", "value1", "value2"}, fstdin, []string{"value1", "value2"}) + + fstdin = fileToSimulateStdin(t, "stdin1") + test([]string{"noarg"}, fstdin, []string{}) }