You are right, so how it can be done
```
key, value, *rest = opt.split("=")
...
elsif !rest.empty?
...
```
I see it even more readable then my previous suggest.