diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-13 09:44:59 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-13 09:44:59 +0000 |
commit | 90632decf63208ff1f8eab710c480d06798985cc (patch) | |
tree | 0228ba31007857c1ef3d787491e441ae42091186 /doc | |
parent | b0f6ed5a2704c48b83e5d26a7d071881ab64b8e3 (diff) | |
download | ruby-90632decf63208ff1f8eab710c480d06798985cc.tar.gz ruby-90632decf63208ff1f8eab710c480d06798985cc.tar.xz ruby-90632decf63208ff1f8eab710c480d06798985cc.zip |
* lib/getopts.rb: single_options can be nil[*], and is not not
optional. ([*]Pointed out by gotoken)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r-- | doc/NEWS | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,14 @@ +: getopts.rb + + Rewrote 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. + : tsort module Imported. Topological sorting library. |