1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:24:43 -07:00
go/src/flag
Tim Cooper 99be9cc02c flag: add (*FlagSet).Name, (*FlagSet).ErrorHandling, export (*FlagSet).Output
Allows code that operates on a FlagSet to know the name and error
handling behavior of the FlagSet without having to call FlagSet.Init.

Fixes #17628
Fixes #21888

Change-Id: Ib0fe4c8885f9ccdacf5a7fb761d5ecb23f3bb055
Reviewed-on: https://go-review.googlesource.com/70391
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-10-31 03:54:16 +00:00
..
example_test.go
export_test.go flag: make default Usage prefer CommandLine's output over just os.Stderr 2017-08-08 01:47:47 +00:00
flag_test.go flag: add (*FlagSet).Name, (*FlagSet).ErrorHandling, export (*FlagSet).Output 2017-10-31 03:54:16 +00:00
flag.go flag: add (*FlagSet).Name, (*FlagSet).ErrorHandling, export (*FlagSet).Output 2017-10-31 03:54:16 +00:00