diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-27 15:00:21 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-27 15:00:21 +0000 |
| commit | 88bfa70c6dc819d961ab7f36793ce054ead3b5ba (patch) | |
| tree | 0008321405d619f122784496fe5b4e8445598668 /lib/optparse.rb | |
| parent | 14979ba0a1e2a8d617b8217dc6d60fb329efce86 (diff) | |
| download | ruby-88bfa70c6dc819d961ab7f36793ce054ead3b5ba.tar.gz ruby-88bfa70c6dc819d961ab7f36793ce054ead3b5ba.tar.xz ruby-88bfa70c6dc819d961ab7f36793ce054ead3b5ba.zip | |
* lib/optparse.rb (CompletingHash#match): fix for 1.9.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
| -rw-r--r-- | lib/optparse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 966de0ed6..0850ffd15 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -700,7 +700,7 @@ class OptionParser # Completion for hash key. # def match(key) - return key, *fetch(key) { + return key, fetch(key) { raise AmbiguousArgument, catch(:ambiguous) {return complete(key)} } end |
