args name with "-"
This commit is contained in:
1 parent
6c33080785
commit
653bb604f5
4 files changed
+150
-150
No files matched your search
@@ -13,11 +13,10 @@ foreach ($args as $arg => $value) {
|
||||
die();
|
||||
} else if ($value) {
|
||||
if ($value === true) {
|
||||
if (strlen($arg) <= 2) $command .= " -$arg";
|
||||
else $command .= " --$arg";
|
||||
$command .= " $arg";
|
||||
} else {
|
||||
if (strlen($arg) <= 2) $command .= " -$arg$value";
|
||||
else $command .= " --$arg $value";
|
||||
if (substr($arg, 0, 2) == '--') $command .= " $arg $value";
|
||||
else $command .= " $arg$value";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user