diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-04 21:15:47 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-04 21:15:47 +0000 |
| commit | 026175caea323b17517e02431927d78a27fb0b2a (patch) | |
| tree | a7b3ef9b347c96986c273248811bb849d52564be /ChangeLog | |
| parent | 96d0579c97e6bb568b21318f05b09e4ba26b92eb (diff) | |
| download | ruby-026175caea323b17517e02431927d78a27fb0b2a.tar.gz ruby-026175caea323b17517e02431927d78a27fb0b2a.tar.xz ruby-026175caea323b17517e02431927d78a27fb0b2a.zip | |
* lib/getopts.rb: Rewrite to fix some bugs and complete features.
- Accept options with the colon in the first argument;
getopts("a:bcd:") is equivalent to getopts("bc", "a:", "d:").
- Do not discard the argument that caused an error.
- Do not discard '-', which commonly stands for stdin.
- Allow specifying a long option with a value using '='.
(command --long-option=value)
- Stop reading options when it meets a non-option argument.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,14 @@ +Tue Mar 5 05:56:29 2002 Akinori MUSHA <knu@iDaemons.org> + + * lib/getopts.rb: Rewrite to fix some bugs and complete features. + - Accept options with the colon in the first argument; + getopts("a:bcd:") is equivalent to getopts("bc", "a:", "d:"). + - Do not discard the argument that caused an error. + - Do not discard '-', which commonly stands for stdin. + - Allow specifying a long option with a value using '='. + (command --long-option=value) + - Stop reading options when it meets a non-option argument. + Mon Mar 4 13:19:18 2002 Akinori MUSHA <knu@iDaemons.org> * ext/extmk.rb.in (dir_config): Sync with mkmf.rb: Fix a bug where |
