|
@@ -154,7 +154,9 @@ func (f *Flags) Parse() {
|
|
|
flag.BoolVar(&f.DisableAgent, "no-cs", false, "disable crowdsec agent")
|
|
|
flag.BoolVar(&f.DisableAPI, "no-api", false, "disable local API")
|
|
|
flag.BoolVar(&f.DisableCAPI, "no-capi", false, "disable communication with Central API")
|
|
|
- flag.StringVar(&f.WinSvc, "winsvc", "", "Windows service Action : Install, Remove etc..")
|
|
|
+ if runtime.GOOS == "windows" {
|
|
|
+ flag.StringVar(&f.WinSvc, "winsvc", "", "Windows service Action: Install, Remove etc..")
|
|
|
+ }
|
|
|
flag.StringVar(&dumpFolder, "dump-data", "", "dump parsers/buckets raw outputs")
|
|
|
flag.Parse()
|
|
|
}
|