Skip to content

Commit

Permalink
chore(validator): Add missing cmd flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoura committed Sep 30, 2024
1 parent a57f319 commit ee7b895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/cartesi-rollups-validator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func init() {
Cmd.Flags().StringVarP(&postgresEndpoint, "postgres-endpoint", "p", "", "Postgres endpoint")
Cmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "enable verbose logging")

Cmd.MarkFlagRequired("input-box-block-number")
err := Cmd.MarkFlagRequired("input-box-block-number")
cobra.CheckErr(err)
}

func main() {
Expand Down

0 comments on commit ee7b895

Please sign in to comment.