get rid of this
This commit is contained in:
parent
43497e8e8c
commit
7ab411f75f
1 changed files with 0 additions and 5 deletions
|
@ -36,7 +36,6 @@ type CrowdSec struct {
|
||||||
Linter bool
|
Linter bool
|
||||||
Prometheus bool
|
Prometheus bool
|
||||||
HTTPListen string `yaml:"http_listen,omitempty"`
|
HTTPListen string `yaml:"http_listen,omitempty"`
|
||||||
ValidatorMode string /*if present points to a specific config (for tests)*/
|
|
||||||
RestoreMode string
|
RestoreMode string
|
||||||
DumpBuckets bool
|
DumpBuckets bool
|
||||||
OutputConfig *outputs.OutputFactory `yaml:"plugin"`
|
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")
|
daemonMode := flag.Bool("daemon", false, "Daemonize, go background, drop PID file, log to file")
|
||||||
testMode := flag.Bool("t", false, "only test configs")
|
testMode := flag.Bool("t", false, "only test configs")
|
||||||
prometheus := flag.Bool("prometheus-metrics", false, "expose http prometheus collector (see http_listen)")
|
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")
|
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.")
|
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 {
|
if *testMode {
|
||||||
c.Linter = true
|
c.Linter = true
|
||||||
}
|
}
|
||||||
if *validatorMode != "" {
|
|
||||||
c.ValidatorMode = *validatorMode
|
|
||||||
}
|
|
||||||
/*overriden by cmdline*/
|
/*overriden by cmdline*/
|
||||||
if *daemonMode {
|
if *daemonMode {
|
||||||
c.Daemonize = true
|
c.Daemonize = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue