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::Officious): separate completion

options from --help.  [ruby-dev:42690]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-07 13:31:11 +00:00
parent ff1fb42734
commit 11ef87461a
5 changed files with 26 additions and 15 deletions

View file

@ -18,7 +18,7 @@ ARGV.options do
opts.on_tail("common options:")
# no argument, shows at tail
opts.on_tail("--usage", "show this message") {puts opts; exit}
opts.on_tail("--help", "show this message") {puts opts; exit}
# mandatory argument
opts.on("-r", "--require=LIBRARY", String,