From cb207b2f3385df281aa7bfcadacba914ba740c69 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 18 Feb 2024 11:00:58 +0100 Subject: [PATCH] cmd/thalos/main.go: Add start-block and end-block flags. --- cmd/thalos/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/thalos/main.go b/cmd/thalos/main.go index 994cdd2..c31c956 100644 --- a/cmd/thalos/main.go +++ b/cmd/thalos/main.go @@ -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) }