Fix regexps for abbreviated options

This commit is contained in:
Nobuyoshi Nakada 2024-04-28 00:06:24 +09:00
parent a0b4f0bcc9
commit 937cb1176d
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -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