diff options
author | Rui Ueyama <ruiu@google.com> | 2014-04-10 22:15:55 -0700 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-04-10 22:15:55 -0700 |
commit | 03bc30772195fca689e502167c1fbc130d797f5a (patch) | |
tree | 2cffd85c1cc4289f9f7ad3130698ec9153302c1d /src/pkg/flag | |
parent | cb28a56b57ebb17bdf033a8b214c2ccee5290fed (diff) | |
download | go-03bc30772195fca689e502167c1fbc130d797f5a.tar.gz |
flag: remove extra space in error message
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/86420046
Committer: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/pkg/flag')
-rw-r--r-- | src/pkg/flag/flag.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/flag/flag.go b/src/pkg/flag/flag.go index d3b454fef..764ed7c8f 100644 --- a/src/pkg/flag/flag.go +++ b/src/pkg/flag/flag.go @@ -754,7 +754,7 @@ func (f *FlagSet) parseOne() (bool, error) { if fv, ok := flag.Value.(boolFlag); ok && fv.IsBoolFlag() { // special case: doesn't need an arg if has_value { if err := fv.Set(value); err != nil { - return false, f.failf("invalid boolean value %q for -%s: %v", value, name, err) + return false, f.failf("invalid boolean value %q for -%s: %v", value, name, err) } } else { fv.Set("true") |