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 | 8d69c7f116d8f9053c91d86f437d6bccf4ab4a7b (patch) | |
tree | 1fdc6e6cfe1b02ce2546390fd64ee52f35544e92 /lib/optparse.rb | |
parent | ce6af3e8a0f9add5e5ef4e5567af3eb74ba4a5d2 (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/optparse.rb')
-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 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 |