get rid of this

This commit is contained in:
Thibault bui Koechlin 2020-06-18 13:52:52 +02:00
parent 43497e8e8c
commit 7ab411f75f

View file

@ -36,7 +36,6 @@ type CrowdSec struct {
Linter bool
Prometheus bool
HTTPListen string `yaml:"http_listen,omitempty"`
ValidatorMode string /*if present points to a specific config (for tests)*/
RestoreMode string
DumpBuckets bool
OutputConfig *outputs.OutputFactory `yaml:"plugin"`
@ -97,7 +96,6 @@ func (c *CrowdSec) GetOPT() error {
daemonMode := flag.Bool("daemon", false, "Daemonize, go background, drop PID file, log to file")
testMode := flag.Bool("t", false, "only test configs")
prometheus := flag.Bool("prometheus-metrics", false, "expose http prometheus collector (see http_listen)")
validatorMode := flag.String("custom-config", "", "[dev] run a specific subset of configs parser:file.yaml,scenarios:file.yaml")
restoreMode := flag.String("restore-state", "", "[dev] restore buckets state from json file")
dumpMode := flag.Bool("dump-state", false, "[dev] Dump bucket state at the end of run.")
@ -142,9 +140,6 @@ func (c *CrowdSec) GetOPT() error {
if *testMode {
c.Linter = true
}
if *validatorMode != "" {
c.ValidatorMode = *validatorMode
}
/*overriden by cmdline*/
if *daemonMode {
c.Daemonize = true