]> Cypherpunks repositories - gostls13.git/commit
flag: Describe the ErrorHandling enum values.
authorAaron Jacobs <jacobsa@google.com>
Fri, 5 Jun 2015 00:12:34 +0000 (10:12 +1000)
committerRob Pike <r@golang.org>
Fri, 5 Jun 2015 13:53:26 +0000 (13:53 +0000)
commit4b6284a7d918aa5813891bde2874411f29d5b418
tree253e43b13227a76f50395c070a50f3464491ae08
parentbbc4351eca2ff435106566497cef0fa15566c42a
flag: Describe the ErrorHandling enum values.

ContinueOnError is particularly confusing, because it causes
FlagSet.Parse to return as soon as it sees an error. I gather that the
intent is "continue the program" rather than "continue parsing",
compared to exiting or panicking.

Change-Id: I27370ce1f321ea4debcee5b03faff3532495c71a
Reviewed-on: https://go-review.googlesource.com/10740
Reviewed-by: Rob Pike <r@golang.org>
src/flag/flag.go