mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/optparse.rb (OptionParser#candidate): skip separators.
* sample/optparse/opttest.rb: should not override --help. [ruby-dev:42690] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6c715d1de8
commit
76c286d195
3 changed files with 9 additions and 1 deletions
2
sample/optparse/opttest.rb
Normal file → Executable file
2
sample/optparse/opttest.rb
Normal file → Executable file
|
@ -18,7 +18,7 @@ ARGV.options do
|
|||
opts.on_tail("common options:")
|
||||
|
||||
# no argument, shows at tail
|
||||
opts.on_tail("--help", "show this message") {puts opts; exit}
|
||||
opts.on_tail("--usage", "show this message") {puts opts; exit}
|
||||
|
||||
# mandatory argument
|
||||
opts.on("-r", "--require=LIBRARY", String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue