Skip to content

Commit 688c562

Browse files
authored
cmd: fix help output (#101)
1 parent 95fdb99 commit 688c562

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

httpbin/cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (e ConfigError) Error() string {
131131
func loadConfig(args []string, getEnv func(string) string, getHostname func() (string, error)) (*config, error) {
132132
cfg := &config{}
133133

134-
fs := flag.NewFlagSet("", flag.ContinueOnError)
134+
fs := flag.NewFlagSet("go-httpbin", flag.ContinueOnError)
135135
fs.BoolVar(&cfg.rawUseRealHostname, "use-real-hostname", false, "Expose value of os.Hostname() in the /hostname endpoint instead of dummy value")
136136
fs.DurationVar(&cfg.MaxDuration, "max-duration", httpbin.DefaultMaxDuration, "Maximum duration a response may take")
137137
fs.Int64Var(&cfg.MaxBodySize, "max-body-size", httpbin.DefaultMaxBodySize, "Maximum size of request or response, in bytes")

httpbin/cmd/cmd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
// To update, run:
1616
// make && ./dist/go-httpbin -h 2>&1 | pbcopy
17-
const usage = `Usage:
17+
const usage = `Usage of go-httpbin:
1818
-allowed-redirect-domains string
1919
Comma-separated list of domains the /redirect-to endpoint will allow
2020
-host string

0 commit comments

Comments
 (0)