summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-04 14:49:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-04 14:49:47 +0000
commit8d69c7f116d8f9053c91d86f437d6bccf4ab4a7b (patch)
tree1fdc6e6cfe1b02ce2546390fd64ee52f35544e92 /lib
parentce6af3e8a0f9add5e5ef4e5567af3eb74ba4a5d2 (diff)
* instruby.rb (install_recursive): get rid of warning.
* lib/optparse.rb (CompletingHash#match): get rid of splat failure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/optparse.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb
index c4e9ad65d4..8cb29c83e6 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -663,9 +663,10 @@ class OptionParser
# Completion for hash key.
#
def match(key)
- return key, *fetch(key) {
+ *values = fetch(key) {
raise AmbiguousArgument, catch(:ambiguous) {return complete(key)}
}
+ return key, *values
end
end