aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnastasis Andronidis <[email protected]>2015-05-11 23:02:07 +0200
committerAnastasis Andronidis <[email protected]>2015-05-12 12:03:52 +0200
commit14a825766ca0b31bf7a2e5c27445851e897d3b43 (patch)
tree3ba58e0f68d433adca00b0a23739f39bdcf1ef5e
parent65be5605de1d26c3cb2174763ba325c4db63584c (diff)
Fixed statement
-rw-r--r--flag.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/flag.go b/flag.go
index ffd7355..9f16733 100644
--- a/flag.go
+++ b/flag.go
@@ -519,8 +519,7 @@ func (f *FlagSet) parseLongArg(s string, args []string) (a []string, err error)
}
split := strings.SplitN(name, "=", 2)
name = split[0]
- m := f.formal
- flag, alreadythere := m[f.normalizeFlagName(name)] // BUG
+ flag, alreadythere := f.formal[f.normalizeFlagName(name)]
if !alreadythere {
if name == "help" { // special case for nice help message.
f.usage()