Skip to content

Commit

Permalink
shift arguments array twice
Browse files Browse the repository at this point in the history
  • Loading branch information
verfriemelt-dot-org committed Dec 26, 2023
1 parent 1ed8ca8 commit 79a97ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _/AbstractKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ public function execute(Console $cli): never

$parser = $this->container->get(ArgvParser::class);
$command->configure($parser);
$parser->parse($cli->getArgv()->all());

$arguments = $cli->getArgv()->all();
\array_shift($arguments); // scriptname
\array_shift($arguments); // command name

$parser->parse($arguments);

exit($command->execute($cli)->value);
}
Expand Down

0 comments on commit 79a97ed

Please sign in to comment.