Fix wrong config flag name
authorFabian Laule <git@fabianlaule.com>
Tue, 8 Aug 2017 13:22:25 +0000 (15:22 +0200)
committerFabian Laule <git@fabianlaule.com>
Tue, 8 Aug 2017 13:22:25 +0000 (15:22 +0200)
main.go

diff --git a/main.go b/main.go
index 56682cfca5b51f37fb13be95be9abd1157c4303e..38ff7bda5a63c19ffeb437d3124d1252231991f8 100644 (file)
--- a/main.go
+++ b/main.go
@@ -38,7 +38,7 @@ var (
                C: &Config{},
        }
 
-       configFile    = kingpin.Flag("config.flag", "Blackbox exporter configuration file.").Default("blackbox.yml").String()
+       configFile    = kingpin.Flag("config.file", "Blackbox exporter configuration file.").Default("blackbox.yml").String()
        listenAddress = kingpin.Flag("web.listen-address", "The address to listen on for HTTP requests.").Default(":9115").String()
        timeoutOffset = kingpin.Flag("timeout-offset", "Offset to subtract from timeout in seconds.").Default("0.5").Float64()
 )