diff options
| author | Anastasis Andronidis <[email protected]> | 2015-05-11 23:02:07 +0200 |
|---|---|---|
| committer | Anastasis Andronidis <[email protected]> | 2015-05-12 12:03:52 +0200 |
| commit | 14a825766ca0b31bf7a2e5c27445851e897d3b43 (patch) | |
| tree | 3ba58e0f68d433adca00b0a23739f39bdcf1ef5e | |
| parent | 65be5605de1d26c3cb2174763ba325c4db63584c (diff) | |
Fixed statement
| -rw-r--r-- | flag.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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() |
