summaryrefslogtreecommitdiff
path: root/lib/getoptlong.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-10 01:20:24 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-10 01:20:24 +0000
commit8686ee186197b3aeea3cfbe53014e36fb5ce9eac (patch)
treee35b79c392e64df3d524054b0db4be39bf04dbbd /lib/getoptlong.rb
parent3e5f70a8153f8ec955af1c6bc721f2e3ea1814a5 (diff)
* lib/getoptlong.rb (GetoptLong#set_options): recieve arguments
as Array. * lib/irb/slex.rb: use Proc#yield. * lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior of String#[]. * lib/rdoc/ri/ri_write.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/getoptlong.rb')
-rw-r--r--lib/getoptlong.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb
index 922d25371c..880883a981 100644
--- a/lib/getoptlong.rb
+++ b/lib/getoptlong.rb
@@ -289,14 +289,7 @@ class GetoptLong
@canonical_names.clear
@argument_flags.clear
- arguments.each do |arg|
- #
- # Each argument must be an Array.
- #
- if !arg.is_a?(Array)
- raise ArgumentError, "the option list contains non-Array argument"
- end
-
+ arguments.each do |*arg|
#
# Find an argument flag and it set to `argument_flag'.
#