Skip to content

Commit

Permalink
Riot mark as required kind only if APIMode is unset
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Mar 15, 2019
1 parent 6531835 commit a4591c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/riot.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ func newRiotCommand() *cobra.Command {
}()
}

if !APIMode && riot.Config.Kind == "" {
log.Fatal("Argument `kind` is required")
}

},
Run: func(cmd *cobra.Command, args []string) {
riot.Start(APIMode)
Expand All @@ -174,8 +178,6 @@ func newRiotCommand() *cobra.Command {
f.UintVar(&riot.Config.MaxGoRoutines, "r", 10, "Set the concurrency value")
f.UintVar(&riot.Config.Offset, "offset", 0, "The starting version from which we start the load")

cmd.MarkFlagRequired("kind")

return cmd
}

Expand Down

0 comments on commit a4591c8

Please sign in to comment.