summaryrefslogtreecommitdiff
path: root/sample/getopts.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/getopts.rb')
-rw-r--r--sample/getopts.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/getopts.rb b/sample/getopts.rb
index 57a7db4..01eddce 100644
--- a/sample/getopts.rb
+++ b/sample/getopts.rb
@@ -55,7 +55,7 @@ def getopts(single_opts, *opts)
while ($ARGV.length != 0)
compare = nil
case $ARGV[0]
- when /^-*$/
+ when /^--?$/
$ARGV.shift
break
when /^--.*/