mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-18 04:40:03 +02:00
internal/config/cli.go: move flags that are not bound to config to cmd/thalos/main.go
This commit is contained in:
parent
69a36e016c
commit
53baae8a7f
2 changed files with 9 additions and 6 deletions
|
|
@ -11,12 +11,6 @@ import (
|
|||
func GetFlags() *pflag.FlagSet {
|
||||
flags := pflag.FlagSet{}
|
||||
|
||||
// Cli only flags
|
||||
flags.StringP("config", "c", "./config.yml", "Config file to read")
|
||||
flags.StringP("level", "L", "info", "Log level to use")
|
||||
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")
|
||||
|
||||
// Generic
|
||||
flags.StringP("url", "u", "", "Url to antelope api")
|
||||
flags.String("codec", "json", "Codec used to send messages")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue