Skip to content

Commit b1099ef

Browse files
committed
up: optimize CliApp code
1 parent f085b16 commit b1099ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CliApp.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ public function runByArgs(array $args, bool $exit = false): void
210210
if (isset($args[0]) && $args[0]) {
211211
$fArg = $args[0]; // check first argument.
212212
if ($fArg[0] !== '-') {
213-
$this->command = array_shift($args);
213+
$this->command = $fArg;
214+
array_shift($args);
214215
}
215216
}
216217

0 commit comments

Comments
 (0)