summaryrefslogtreecommitdiff
path: root/sample/optparse
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-06 13:47:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-06 13:47:19 +0000
commit76c286d19581e2339782e7c8b4744dd2cdb8df17 (patch)
tree49bee8ddf797c930cf97d683e4731b14e84d4927 /sample/optparse
parent6c715d1de8f170822197dfce7f794e9919e0c92d (diff)
* 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
Diffstat (limited to 'sample/optparse')
-rwxr-xr-x[-rw-r--r--]sample/optparse/opttest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/optparse/opttest.rb b/sample/optparse/opttest.rb
index 9247af494f..ea3bc5ad46 100644..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("--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,