diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,11 +2,12 @@ package main import ( "errors" - "flag" "log" "net/url" "os" "strings" + + "github.com/namsral/flag" ) // VERSION stores the information about the semantic version of application @@ -82,6 +83,7 @@ func appMain() { flag.Var(&listenHTTP, "listen-http", "The address(es) to listen on for HTTP requests") flag.Var(&listenHTTPS, "listen-https", "The address(es) to listen on for HTTPS requests") flag.Var(&listenProxy, "listen-proxy", "The address(es) to listen on for proxy requests") + flag.String(flag.DefaultConfigFlagname, "", "path to config file") flag.Parse() |