Skip to content

Commit 64213cc

Browse files
committed
fixed option parsing
1 parent 99328ca commit 64213cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPixie/CLI/Context/SAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function requireParsedArguments()
110110
continue;
111111
}
112112

113-
if(preg_match('#^--([a-z0-9]+)(?:=(.*))?$#i', $parameter, $matches)) {
113+
if(preg_match('#^--([a-z0-9\-]+)(?:=(.*))?$#i', $parameter, $matches)) {
114114
$option = $matches[1];
115115

116116
if(!empty($matches[2])) {

0 commit comments

Comments
 (0)