Skip to content

Commit

Permalink
Fix artisan eecli proxy to recognize optional arguments
Browse files Browse the repository at this point in the history
* Adding fluent definition call
* Add Coilpack's interpreted signature to the help output

---------

Co-authored-by: Bryan Nielsen <[email protected]>
  • Loading branch information
dougblackjr and bryannielsen authored May 23, 2024
1 parent c05f112 commit 7989027
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Fixed

- Bug where ExpressionEngine CLI command proxy was not recognizing optional arguments

## [1.3.1] - 2024-04-24

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions src/Commands/EECliCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function __construct()
// If we have a help flag we need to get out early so that it can be
// handled by the ExpressionEngine Command and not by Symfony/Laravel
if ($arg == '--help') {
$this->cli->info("Coilpack Usage: $this->signature");
return $this->handle();
}
}
Expand Down Expand Up @@ -72,6 +73,8 @@ protected function setupCommand($command)

return '{--'.$option.'=}';
}, array_keys($options)));

$this->configureUsingFluentDefinition();
}

public function handle(): int
Expand Down

0 comments on commit 7989027

Please sign in to comment.