summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-07 13:31:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-07 13:31:11 +0000
commit11ef87461a79877796786af7f0c1eee75ab4f0bf (patch)
tree6b7056dd4f2e68f533085987599ccb15d1204bed /sample
parentff1fb427348e3e19acc324e851a1ad0e49867d0a (diff)
* 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
Diffstat (limited to 'sample')
-rwxr-xr-xsample/optparse/opttest.rb2
1 files changed, 1 insertions, 1 deletions
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,