summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-04-28 00:06:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-04-28 00:06:24 +0900
commit937cb1176de32b69d9b800e7d0bd3b88cb83d06b (patch)
tree9395b29fc9dc1ebb2c0a7d8521a12da964c1e4df
parenta0b4f0bcc97331e8feae1bcc9567f821921669b9 (diff)
Fix regexps for abbreviated options
-rwxr-xr-xbootstraptest/runner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 48d69e1fd5..120b78246c 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -193,7 +193,7 @@ def main
warn "unknown --tty argument: #$3" if $3
BT.tty = !$1 || !$2
true
- when /\A(-q|--q(uiet))\z/
+ when /\A(-q|--q(uiet)?)\z/
quiet = true
BT.quiet = true
true
@@ -204,7 +204,7 @@ def main
BT.timeout = $1.to_f
BT.timeout_scale = $2.to_f if defined?($2)
true
- when /\A(-v|--v(erbose))\z/
+ when /\A(-v|--v(erbose)?)\z/
BT.verbose = true
BT.quiet = false
true