Browse Source

Clarify commandline arguments

pull/1/head
Pascal Bach 8 years ago
parent
commit
66c5477d32
  1. 4
      README.md
  2. 4
      main.go

4
README.md

@ -22,9 +22,9 @@ Usage:
$GOPATH/bin/fritzbox_exporter -h
Usage of ./fritzbox_exporter:
-gateway-address string
The URL of the upnp service (default "fritz.box")
The hostname or IP of the FRITZ!Box (default "fritz.box")
-gateway-port int
The URL of the upnp service (default 49000)
The port of the FRITZ!Box UPnP service (default 49000)
-listen-address string
The address to listen on for HTTP requests. (default ":9133")
-test

4
main.go

@ -32,8 +32,8 @@ var (
flag_test = flag.Bool("test", false, "print all available metrics to stdout")
flag_addr = flag.String("listen-address", ":9133", "The address to listen on for HTTP requests.")
flag_gateway_address = flag.String("gateway-address", "fritz.box", "The URL of the upnp service")
flag_gateway_port = flag.Int("gateway-port", 49000, "The URL of the upnp service")
flag_gateway_address = flag.String("gateway-address", "fritz.box", "The hostname or IP of the FRITZ!Box")
flag_gateway_port = flag.Int("gateway-port", 49000, "The port of the FRITZ!Box UPnP service")
)
var (

Loading…
Cancel
Save