go/src/flag
Aaron Cannon e308807f65 flag: improve docs for PrintDefaults; clarify how to change output destination
The existing docs only mention that it is possible to change the output
destination of PrintDefaults from the default of standard error, but fail to
mention how to actually do so. This change fixes this lack by directing users
to CommandLine.SetOutput.

Fixes #15024

Change-Id: Ieaa7edbebd23d4ea6fa7e53d97a87143d590bdb3
Reviewed-on: https://go-review.googlesource.com/c/145203
Reviewed-by: Rob Pike <r@golang.org>
2019-01-21 05:30:12 +00:00
..
example_test.go
example_value_test.go flag: add a Value example 2018-06-21 23:32:53 +00:00
export_test.go flag: make default Usage prefer CommandLine's output over just os.Stderr 2017-08-08 01:47:47 +00:00
flag.go flag: improve docs for PrintDefaults; clarify how to change output destination 2019-01-21 05:30:12 +00:00
flag_test.go flag: return a consistent parse error if the flag value is invalid 2018-10-19 03:48:38 +00:00