summaryrefslogtreecommitdiff
path: root/src/pkg/flag
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/flag')
-rw-r--r--src/pkg/flag/flag.go2
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")