Skip to content

Commit ec6a914

Browse files
committed
Unify how --format is handle by commands
1 parent 691075a commit ec6a914

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Command/LintCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ protected function configure(): void
7272
Or of a whole directory:
7373
7474
<info>php %command.full_name% dirname</info>
75+
76+
The <info>--format</info> option specifies the format of the command output:
77+
7578
<info>php %command.full_name% dirname --format=json</info>
7679
7780
You can also exclude one or more specific files:
@@ -266,6 +269,7 @@ public function complete(CompletionInput $input, CompletionSuggestions $suggesti
266269
}
267270
}
268271

272+
/** @return string[] */
269273
private function getAvailableFormatOptions(): array
270274
{
271275
return ['txt', 'json', 'github'];

0 commit comments

Comments
 (0)