From c90c44b1d327592f16520555f1f6480dc90df1f4 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 11 Jun 2006 14:21:08 +0000 Subject: * lib/optparse.rb (OptionParser::Arguable#getopts): pass self to the parser. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++- lib/optparse.rb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a0d784977..de3dfd731 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,10 @@ -Sun Jun 11 23:16:00 2006 Nobuyoshi Nakada +Sun Jun 11 23:20:07 2006 Nobuyoshi Nakada * 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 * win32/win32.h (write): not need to define on bcc. diff --git a/lib/optparse.rb b/lib/optparse.rb index f9f068b4c..c79da48e0 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 -- cgit