Support = on long opts, not short opts

This commit is contained in:
morganamilo 2018-08-08 16:03:39 +01:00
parent 6b35f9ee2f
commit 16d4a2ca88
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -772,7 +772,10 @@ func (parser *arguments) parseLongOption(arg string, param string) (usedNext boo
arg = arg[2:]
if hasParam(arg) {
split := strings.SplitN(arg, "=", 2)
if len(split) == 2 {
err = parser.addParam(split[0], split[1])
} else if hasParam(arg) {
err = parser.addParam(arg, param)
usedNext = true
} else {