Fix regexps for abbreviated options
This commit is contained in:
parent
a0b4f0bcc9
commit
937cb1176d
@ -193,7 +193,7 @@ def main
|
|||||||
warn "unknown --tty argument: #$3" if $3
|
warn "unknown --tty argument: #$3" if $3
|
||||||
BT.tty = !$1 || !$2
|
BT.tty = !$1 || !$2
|
||||||
true
|
true
|
||||||
when /\A(-q|--q(uiet))\z/
|
when /\A(-q|--q(uiet)?)\z/
|
||||||
quiet = true
|
quiet = true
|
||||||
BT.quiet = true
|
BT.quiet = true
|
||||||
true
|
true
|
||||||
@ -204,7 +204,7 @@ def main
|
|||||||
BT.timeout = $1.to_f
|
BT.timeout = $1.to_f
|
||||||
BT.timeout_scale = $2.to_f if defined?($2)
|
BT.timeout_scale = $2.to_f if defined?($2)
|
||||||
true
|
true
|
||||||
when /\A(-v|--v(erbose))\z/
|
when /\A(-v|--v(erbose)?)\z/
|
||||||
BT.verbose = true
|
BT.verbose = true
|
||||||
BT.quiet = false
|
BT.quiet = false
|
||||||
true
|
true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user