Lines Matching refs:opt
8 @opt = OptionParser.new
9 @opt.define("-z", "zzz") {}
10 @opt.define("--foo") {}
11 @opt.define("--bar=BAR") {}
12 @opt.define("--for=TYPE", [:hello, :help, :zot]) {}
16 assert_equal([], @opt.candidate(""))
20 assert_equal(%w[-z --foo --bar= --for=], @opt.candidate("-"))
24 assert_equal(%w[--foo --bar= --for=], @opt.candidate("--"))
28 assert_equal(%w[--foo --for=], @opt.candidate("--f"))
32 assert_equal(%w[--for=], @opt.candidate("--for"))
36 assert_equal(%w[hello help zot], @opt.candidate("--for="))
40 assert_equal(%w[hello help], @opt.candidate("--for=h"))