diff --git a/commands/cli/parse_test.go b/commands/cli/parse_test.go index d9353544e..f42cab637 100644 --- a/commands/cli/parse_test.go +++ b/commands/cli/parse_test.go @@ -30,6 +30,11 @@ func TestOptionParsing(t *testing.T) { t.Error("Returned input was different than expected: %v", input) } + _, _, err = parseOptions([]string{ "-beep=1", "-boop=2", "-beep=3" }) + if err == nil { + t.Error("Should have failed (duplicate option name)") + } + path, args, err := parsePath([]string{ "test", "beep", "boop" }, cmd) if err != nil { t.Error("Should have passed")