Skip to content

Commit

Permalink
fix height flag type (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: Toshihiko Okubo <[email protected]>
  • Loading branch information
toshihiko-okubo authored Nov 8, 2023
1 parent 068d8f2 commit 42ebfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
)

func heightFlag(cmd *cobra.Command) *cobra.Command {
cmd.Flags().Int64(flags.FlagHeight, 0, "Height of headers to fetch")
cmd.Flags().Uint64(flags.FlagHeight, 0, "Height of headers to fetch")
if err := viper.BindPFlag(flags.FlagHeight, cmd.Flags().Lookup(flags.FlagHeight)); err != nil {
panic(err)
}
Expand Down

0 comments on commit 42ebfc8

Please sign in to comment.