diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-13 09:53:54 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-13 09:53:54 +0000 |
commit | e70419dee77878c5a8f68476d859f3ddeb35d126 (patch) | |
tree | 9a30e714ab53e27e9d26c65cc624832e12e180d3 /eval.c | |
parent | 63a17aa5a2ecc674d107f76d03a9cf0c75ffcf2f (diff) |
* lib/getopts.rb: Merge from 1.7. 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 or stdout.
- 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/branches/ruby_1_6@2190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
0 files changed, 0 insertions, 0 deletions