]> Cypherpunks repositories - gostls13.git/commit
flag: change Set method Value interface to return error instead of bool.
authorDavid Symonds <dsymonds@golang.org>
Sun, 25 Dec 2011 05:12:26 +0000 (16:12 +1100)
committerDavid Symonds <dsymonds@golang.org>
Sun, 25 Dec 2011 05:12:26 +0000 (16:12 +1100)
commit98b90475acbe94e336b59feabaa3a643d1ad0c7c
tree5b0bffe49c92b46bc4f4a0c6283e4a0357c96648
parent57c9bb4a07b0ac483935e321ef760c0c52f8efd4
flag: change Set method Value interface to return error instead of bool.

This yields much better error messages when a bad flag value is given.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5498078
src/pkg/flag/flag.go
src/pkg/flag/flag_test.go