PMCORE-3527-B

This commit is contained in:
Andrea Adamczyk
2021-11-17 09:17:42 -04:00
parent 279f8a2c28
commit dfb5b3e639

View File

@@ -206,8 +206,10 @@ EOT;
$args = $argv;
$cliname = array_shift( $args );
$taskName = array_shift( $args );
while ($taskName[0] == '-') {
$taskName = array_shift( $args );
if (isset($taskName[0])) {
while ($taskName[0] == '-') {
$taskName = array_shift( $args );
}
}
if (! $taskName) {
echo self::error( "Specify a task from the list below." ) . "\n\n";