diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-24 12:17:05 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-24 12:17:05 +0000 |
commit | dd5ae05b05241e9d5ee8e0d246c4622b59c147c6 (patch) | |
tree | a169fe278056d46a92ecd109a013e4b6fcbe174d /lib | |
parent | 276d82a7c8cf8f5e80c057f3b85dc293eb573fd7 (diff) | |
download | ruby-dd5ae05b05241e9d5ee8e0d246c4622b59c147c6.tar.gz |
* lib/optparse.rb (OptionParser#to_a): should split by end-of-line,
and MUST TEST IT, MUST RUN THE TEST, MUST VERIFY BEFORE BACKPORT.
[ruby-dev:45568][Bug #6348]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/optparse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 2306606b87..da022c9450 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1071,7 +1071,7 @@ XXX # # Returns option summary list. # - def to_a; summarize("#{banner}".split(/$/)) end + def to_a; summarize("#{banner}".split) end # # Checks if an argument is given twice, in which case an ArgumentError is |