]> Cypherpunks.ru repositories - gostls13.git/commit
flag: add (*FlagSet).Name, (*FlagSet).ErrorHandling, export (*FlagSet).Output
authorTim Cooper <tim.cooper@layeh.com>
Thu, 12 Oct 2017 19:51:01 +0000 (16:51 -0300)
committerIan Lance Taylor <iant@golang.org>
Tue, 31 Oct 2017 03:54:16 +0000 (03:54 +0000)
commit99be9cc02cdb42d692a5889500e1b68d6155ae62
tree01f86dc8d4c3cfecb1ded9d141bf9bdc75612505
parent26e49e695f5df063f7f4e33718b22ce1cbc6e533
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>
src/flag/flag.go
src/flag/flag_test.go