1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/optparse.rb (CompletingHash#match): fix for 1.9.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-12-27 15:00:21 +00:00
parent c1bf7315ae
commit c3144a39a7
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Dec 27 23:59:53 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb (CompletingHash#match): fix for 1.9.
Tue Dec 27 14:17:55 2005 Tanaka Akira <akr@m17n.org>
* configure.in: define IA64 for portability. (HP aC++/ANSI C doesn't

View file

@ -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