Skip to content

Commit 7c5791b

Browse files
committed
Add check for correct project flag
1 parent d8c6c14 commit 7c5791b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/cmd/perfcomp/compare.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ func newCompareCommand() *cobra.Command {
144144
// Validate the project flag
145145
if project == "" {
146146
log.Fatal("must provide project")
147+
} else if project != "mongo-go-driver" {
148+
log.Fatalf("support for project %q is not configured yet", project)
147149
}
148150

149151
if err := runCompare(cmd, args, project); err != nil {

0 commit comments

Comments
 (0)