From 11ef87461a79877796786af7f0c1eee75ab4f0bf Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 7 Dec 2010 13:31:11 +0000 Subject: * 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 --- sample/optparse/opttest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample') diff --git a/sample/optparse/opttest.rb b/sample/optparse/opttest.rb index ea3bc5ad46..9247af494f 100755 --- a/sample/optparse/opttest.rb +++ b/sample/optparse/opttest.rb @@ -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, -- cgit v1.2.3