Actions
Bug #1128
closedOptParse outputs a misleading display
Description
=begin
as discussed
http://www.ruby-forum.com/topic/177288#new
require 'optparse' ; OptionParser.new do |o|
o.on('-p', '--123456789012345678901234567890=NAME',
'multiples variant ex: ') {}
end.parse(['-h'])
Usage: irb [options]
-p=NAME
--123456789012345678901234567890
multiples variant ex:
"When short + long + value + description are too long to hold on a single
line, optionparser tries to present it better, and it shows the bug."
i.e. it shouldn't show -p=NAME and it should be -pNAME.
Thanks!
-=r
=end
Updated by nobu (Nobuyoshi Nakada) over 16 years ago
- Status changed from Open to Closed
- Assignee set to nobu (Nobuyoshi Nakada)
=begin
Fixed at r21926 in 1.9 trunk and 1.8 trunk.
=end
Actions
Like0
Like0