mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
cmd/thalos/main.go: Add start-block and end-block flags.
This commit is contained in:
parent
7033240000
commit
cb207b2f33
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ func init() {
|
||||||
flags.StringP("pid", "p", "", "Where to write process id")
|
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.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)
|
rootCmd.PersistentFlags().AddFlagSet(&flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue