Merged in bugfix/PMCORE-3527-B (pull request #8284)

PMCORE-3527-B

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Andrea Adamczyk
2021-11-17 13:22:53 +00:00
committed by Julio Cesar Laura Avendaño

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";