diff options
-rw-r--r-- | lib/optparse.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 5a3ea4e2dd..13d4591c07 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1547,7 +1547,8 @@ XXX # short option when /\A-(.)((=).*|.+)?/m - opt, has_arg, eq, val, rest = $1, $3, $3, $2, $2 + eq, rest, opt = $3, $2, $1 + has_arg, val = eq, rest begin sw, = search(:short, opt) unless sw |