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 | f2dfae7ea0258fcde14d9938c00dc894b7b3ec39 (patch) | |
tree | a7b3ef9b347c96986c273248811bb849d52564be /lib/eregex.rb | |
parent | ab1b4b5869efbcd3fa323698ad3a28466b07fe62 (diff) | |
download | ruby-f2dfae7ea0258fcde14d9938c00dc894b7b3ec39.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/eregex.rb')
0 files changed, 0 insertions, 0 deletions