Skip to content

Commit 9666b94

Browse files
authored
Merge pull request #8 from Aeliot-Tm/7-long-options-of-command-is-not-accepted
Fix getting of options of console command passed via long names
2 parents 0c0b63a + e166c28 commit 9666b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/pcsf-baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $absolutePathMaker = static function (string $path) use ($projectPath): string {
4040

4141
$options = (static function () use ($absolutePathMaker): array {
4242
$values = [];
43-
$options = getopt('b:c:f:', ['baseline', 'config', 'finder']);
43+
$options = getopt('b:c:f:', ['baseline:', 'config:', 'finder:']);
4444
$defaults = [
4545
'.php-cs-fixer-baseline.json' => ['b', 'baseline'],
4646
'.php-cs-fixer.dist.php' => ['c', 'config'],

0 commit comments

Comments
 (0)