diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-04 14:49:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-04 14:49:47 +0000 |
commit | d8a9c4e13ab1715609457fa960d7dd9a7c1439ce (patch) | |
tree | 1fdc6e6cfe1b02ce2546390fd64ee52f35544e92 /lib | |
parent | 3d08798db04ac6343b711a7bfbebae5e27effee5 (diff) | |
download | ruby-d8a9c4e13ab1715609457fa960d7dd9a7c1439ce.tar.gz ruby-d8a9c4e13ab1715609457fa960d7dd9a7c1439ce.tar.xz ruby-d8a9c4e13ab1715609457fa960d7dd9a7c1439ce.zip |
* instruby.rb (install_recursive): get rid of warning.
* lib/optparse.rb (CompletingHash#match): get rid of splat failure.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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 c4e9ad65d..8cb29c83e 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 |