diff options
Diffstat (limited to 'lib/getopts.rb')
-rw-r--r-- | lib/getopts.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getopts.rb b/lib/getopts.rb index e29e4211e2..b1cffd9ba0 100644 --- a/lib/getopts.rb +++ b/lib/getopts.rb @@ -18,7 +18,7 @@ $RCS_ID=%q$Header$ -def getopts(single_options = '', *options) +def getopts(single_options, *options) boolopts = {} valopts = {} @@ -31,7 +31,7 @@ def getopts(single_options = '', *options) else valopts[opt[0, 1]] = nil end - end + end if single_options options.each do |arg| opt, val = arg.split(':', 2) |