mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Support = on long opts, not short opts
This commit is contained in:
parent
6b35f9ee2f
commit
16d4a2ca88
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue