]> Cypherpunks repositories - gostls13.git/commit
flag: improve docs for PrintDefaults; clarify how to change output destination
authorAaron Cannon <cannona@fireantproductions.com>
Sat, 27 Oct 2018 16:21:00 +0000 (11:21 -0500)
committerRob Pike <r@golang.org>
Mon, 21 Jan 2019 05:30:12 +0000 (05:30 +0000)
commite308807f658c11af52804d55c1b8c4b2cf80d3f3
treed193fbfcd656ff46c4e4dbdc98db18b926935f51
parent6718bb22fe36db9f58d4b4263ed9ffa182ca0c1b
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>
src/flag/flag.go