This commit is contained in:
A. Feldmann
2018-03-14 09:48:49 +01:00
committed by Alexander Trost
parent 3c343fb0a2
commit 33bb722e06
5 changed files with 43 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ Options:
-h --help Show this screen.
--version Show version
--immediate Tick immediately (by default waits for first defined interval)
--restarted Get open incidents before start monitoring (if monitor died or restarted)
Environment varaibles:
CACHET_API override API url from configuration
@@ -58,6 +59,10 @@ func main() {
cfg.Immediate = immediate.(bool)
}
if restarted, ok := arguments["--restarted"]; ok {
cfg.Restarted = restarted.(bool)
}
if name := arguments["--name"]; name != nil {
cfg.SystemName = name.(string)
}