1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

cmd/thalos/main.go: Add start-block and end-block flags.

This commit is contained in:
Henrik Hautakoski 2024-02-18 11:00:58 +01:00
parent 7033240000
commit cb207b2f33

View file

@ -34,6 +34,9 @@ func init() {
flags.StringP("pid", "p", "", "Where to write process id")
flags.BoolP("no-state-cache", "n", false, "Force the application to take start block from config/api")
flags.Int("start-block", 0, "Start to stream from this block (default: config value, cache, head from api)")
flags.Int("end-block", 0, "Stop streaming when this block is reached")
rootCmd.PersistentFlags().AddFlagSet(&flags)
}