Skip to content

Commit 42ebfc8

Browse files
fix height flag type (#120)
Signed-off-by: Toshihiko Okubo <toshihiko.okubo@datachain.jp>
1 parent 068d8f2 commit 42ebfc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
)
2020

2121
func heightFlag(cmd *cobra.Command) *cobra.Command {
22-
cmd.Flags().Int64(flags.FlagHeight, 0, "Height of headers to fetch")
22+
cmd.Flags().Uint64(flags.FlagHeight, 0, "Height of headers to fetch")
2323
if err := viper.BindPFlag(flags.FlagHeight, cmd.Flags().Lookup(flags.FlagHeight)); err != nil {
2424
panic(err)
2525
}

0 commit comments

Comments
 (0)