flag: global Usage func disregards FlagSet.SetOutput #20998
Labels
Documentation
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
https://play.golang.org/p/05pwqQu-3-
What did you expect to see?
No output
What did you see instead?
STDERR:
/usr/local/Cellar/go/1.8.2/libexec/src/flag/flag.go
Usage
function disregardsf.Out()
in favour ofos.Stderr
.The correct code should be:
The text was updated successfully, but these errors were encountered: