Skip to content

Commit

Permalink
feat: add backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
grandeljay committed Nov 16, 2023
1 parent f426b08 commit 91ae1e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Classes/Cli/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public function hasOption(string $option): bool
{
global $argv;

if (in_array($option, $argv)) {
return true;
};

foreach ($argv as $value) {
$optionParts = explode('=', $value);
$optionName = $optionParts[0] ?? $value;
Expand Down

0 comments on commit 91ae1e3

Please sign in to comment.