summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/optparse.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 895c55d40..75ed7788a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jun 11 23:20:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::Arguable#getopts): pass self to the
+ parser.
+
Sun Jun 11 10:00:57 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.h (write): not need to define on bcc.
diff --git a/lib/optparse.rb b/lib/optparse.rb
index c00cda450..db7be04ae 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -1833,7 +1833,7 @@ Extends command line arguments array to parse itself.
end
=end #'#"#`#
def getopts(*args)
- options.getopts(*args)
+ options.getopts(self, *args)
end
=begin private