summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/optparse.rb2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a0d784977d..de3dfd7318 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,10 @@
-Sun Jun 11 23:16:00 2006 Nobuyoshi Nakada <[email protected]>
+Sun Jun 11 23:20:07 2006 Nobuyoshi Nakada <[email protected]>
* object.c (sym_call): disallow to call private methods.
+ * lib/optparse.rb (OptionParser::Arguable#getopts): pass self to the
+ parser.
+
Sun Jun 11 09:56:41 2006 NAKAMURA Usaku <[email protected]>
* win32/win32.h (write): not need to define on bcc.
diff --git a/lib/optparse.rb b/lib/optparse.rb
index f9f068b4c8..c79da48e01 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -1877,7 +1877,7 @@ Extends command line arguments array to parse itself.
end
=end #'#"#`#
def getopts(*args)
- options.getopts(*args)
+ options.getopts(self, *args)
end
=begin private