Skip to content
Snippets Groups Projects
Unverified Commit 688c5627 authored by Will McCutchen's avatar Will McCutchen Committed by GitHub
Browse files

cmd: fix help output (#101)

parent 95fdb991
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,7 @@ func (e ConfigError) Error() string {
func loadConfig(args []string, getEnv func(string) string, getHostname func() (string, error)) (*config, error) {
cfg := &config{}
fs := flag.NewFlagSet("", flag.ContinueOnError)
fs := flag.NewFlagSet("go-httpbin", flag.ContinueOnError)
fs.BoolVar(&cfg.rawUseRealHostname, "use-real-hostname", false, "Expose value of os.Hostname() in the /hostname endpoint instead of dummy value")
fs.DurationVar(&cfg.MaxDuration, "max-duration", httpbin.DefaultMaxDuration, "Maximum duration a response may take")
fs.Int64Var(&cfg.MaxBodySize, "max-body-size", httpbin.DefaultMaxBodySize, "Maximum size of request or response, in bytes")
......
......@@ -14,7 +14,7 @@ import (
// To update, run:
// make && ./dist/go-httpbin -h 2>&1 | pbcopy
const usage = `Usage:
const usage = `Usage of go-httpbin:
-allowed-redirect-domains string
Comma-separated list of domains the /redirect-to endpoint will allow
-host string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment