diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-15 14:54:01 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-15 14:54:01 +0000 |
| commit | ef297beeefca9d9d3c52d600289d750a7fb57cf3 (patch) | |
| tree | 4dccbb8678772eba5c7cfa358bb320f7b569e193 | |
| parent | cdb8f496af4294bb8fbccd27077f67bce13dad73 (diff) | |
| download | ruby-ef297beeefca9d9d3c52d600289d750a7fb57cf3.tar.gz ruby-ef297beeefca9d9d3c52d600289d750a7fb57cf3.tar.xz ruby-ef297beeefca9d9d3c52d600289d750a7fb57cf3.zip | |
* lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exception
no longer has to_str method.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 17 | ||||
| -rw-r--r-- | lib/optparse.rb | 4 |
2 files changed, 13 insertions, 8 deletions
@@ -1,3 +1,8 @@ +Thu Jul 15 23:53:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exception + no longer has to_str method. + Thu Jul 15 22:59:48 2004 Shugo Maeda <shugo@ruby-lang.org> * ext/readline/extconf.rb: added dir_config for curses, ncurses, @@ -13,7 +18,7 @@ Thu Jul 15 10:15:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/, ext/tcltklib/: bug fix - * ext/tk/lib/tk.rb: better operation for SIGINT when processing + * ext/tk/lib/tk.rb: better operation for SIGINT when processing callbacks. * ext/tk/lib/tk/msgcat.rb: ditto. * ext/tk/lib/tk/variable.rb: ditto. @@ -22,10 +27,10 @@ Thu Jul 15 10:15:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/tk/validation.rb: add Tk::ValidateConfigure.__def_validcmd to define validatecommand methods easier - * ext/tk/lib/tk.rb (_genobj_for_tkwidget): support autoload Tk ext + * ext/tk/lib/tk.rb (_genobj_for_tkwidget): support autoload Tk ext classes - * ext/tk/lib/tk/canvas.rb and so on: remove the parent widget type + * ext/tk/lib/tk/canvas.rb and so on: remove the parent widget type check for items (e.g. canvas items; depends on the class) to avoid some troubles on Tk extension widget class definition. @@ -92,14 +97,14 @@ Sat Jul 10 09:30:24 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp> Sat Jul 10 04:21:56 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> - * ext/tk/lib/tk.rb: better operation for SIGINT when processing + * ext/tk/lib/tk.rb: better operation for SIGINT when processing callbacks. * ext/tk/lib/tk/msgcat.rb: ditto. * ext/tk/lib/tk/variable.rb: ditto. * ext/tk/lib/tk/timer.rb: ditto. - * ext/tk/lib/tk/validation.rb (__def_validcmd): add a module - function of Tk::ValidateConfigure to define validatecommand + * ext/tk/lib/tk/validation.rb (__def_validcmd): add a module + function of Tk::ValidateConfigure to define validatecommand methods easier Fri Jul 9 22:36:36 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> diff --git a/lib/optparse.rb b/lib/optparse.rb index 1b083b8e6..63cf1d79f 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -923,11 +923,11 @@ class OptionParser end def warn(mesg = $!) - super(program_name + ': ' + mesg) + super("#{program_name}: #{mesg}") end def abort(mesg = $!) - super(program_name + ': ' + mesg) + super("#{program_name}: #{mesg}") end =begin |
