1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/optparse.rb (OptionParser#candidate): : was missing. Thanks,

Shota Fukumori.  [ruby-dev:42634]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2010-11-27 05:01:13 +00:00
parent d412050e72
commit 2381984069
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Nov 27 13:58:55 2010 Shugo Maeda <shugo@ruby-lang.org>
* lib/optparse.rb (OptionParser#candidate): : was missing. Thanks,
Shota Fukumori. [ruby-dev:42634]
Sat Nov 27 12:07:05 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
* man/ruby.1: Ruby man page from Arthur Gunn in [ruby-core:33412]

View file

@ -1549,7 +1549,7 @@ XXX
end
pat = Completion.regexp(word, true)
visit(:each_option) do |opt|
opts = (long ? opt.long : []) + (short ? opt.short [])
opts = (long ? opt.long : []) + (short ? opt.short : [])
opts = Completion.candidate(word, true, pat, &opts.method(:each)).map(&:first) if pat
if /\A=/ =~ opt.arg
opts.map! {|sw| sw + "="}