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 /array.c | |
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 'array.c')
0 files changed, 0 insertions, 0 deletions