summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-13 09:53:54 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-13 09:53:54 +0000
commite70419dee77878c5a8f68476d859f3ddeb35d126 (patch)
tree9a30e714ab53e27e9d26c65cc624832e12e180d3 /doc
parent63a17aa5a2ecc674d107f76d03a9cf0c75ffcf2f (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 'doc')
-rw-r--r--doc/NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/NEWS b/doc/NEWS
index 63898e4839..6a3b5bf2ee 100644
--- a/doc/NEWS
+++ b/doc/NEWS
@@ -1,5 +1,16 @@
Summary of the changes since 1.6.7:
+: 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.
+
: Marshal.dump
Fixed where Marshal::dump(foo, proc{...}) fails. (which was