diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/optparse.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 diff --git a/lib/optparse.rb b/lib/optparse.rb index 966de0ed68..0850ffd15e 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 |