mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/optparse.rb (OptionParser::Completion#complete): new parameter
to direct case insensitiveness. * lib/optparse.rb (OptionParser#order!): ignore case only for long option. [ruby-dev:25048] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
174052749c
commit
af3da7d124
3 changed files with 23 additions and 20 deletions
|
@ -31,8 +31,8 @@ module TestOptionParser::NoArg
|
|||
assert_equal(%w"", no_error {@opt.parse!(%w"-o")})
|
||||
assert_equal(true, @flag)
|
||||
@flag = nil
|
||||
no_error {@opt.parse!(%w"-O")}
|
||||
assert_equal(true, @flag)
|
||||
assert_raises(OptionParser::InvalidOption) {@opt.parse!(%w"-O")}
|
||||
assert_nil(@flag)
|
||||
@flag = nil
|
||||
assert_equal(%w"foo", no_error {@opt.parse!(%w"-o foo")})
|
||||
assert_equal(true, @flag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue