This commit is contained in:
Nuno Maduro
2023-03-16 11:06:07 +00:00
parent d71af91360
commit 7cd6b4ff40

View File

@ -86,7 +86,7 @@ final class Help implements HandlesArguments
} }
/** /**
* @return array<string, array<int, array{arg?: string, desc: string}>> * @return array<string, array<int, array<'arg'|'desc'|int, array{arg: string, desc: string}|string>>>
*/ */
private function getContent(): array private function getContent(): array
{ {
@ -98,7 +98,7 @@ final class Help implements HandlesArguments
$content['Configuration'] = [[ $content['Configuration'] = [[
'arg' => '--init', 'arg' => '--init',
'desc' => 'Initialise a standard Pest configuration', 'desc' => 'Initialise a standard Pest configuration',
]] + $content['Configuration']; ], $content['Configuration']];
$content['Selection'] = [ $content['Selection'] = [
[ [
@ -111,7 +111,14 @@ final class Help implements HandlesArguments
], ],
] + $content['Selection']; ] + $content['Selection'];
$content['Code Coverage'] = [ $content['Reporting'] = [...$content['Reporting'], ...[
[
'arg' => '--compact',
'desc' => 'Replace default result output with Compact format',
],
]];
$content['Code Coverage'] = array_merge([
[ [
'arg' => '--coverage ', 'arg' => '--coverage ',
'desc' => 'Generate code coverage report and output to standard output', 'desc' => 'Generate code coverage report and output to standard output',
@ -120,7 +127,7 @@ final class Help implements HandlesArguments
'arg' => '--coverage --min', 'arg' => '--coverage --min',
'desc' => 'Set the minimum required coverage percentage, and fail if not met', 'desc' => 'Set the minimum required coverage percentage, and fail if not met',
], ],
] + $content['Code Coverage']; ], $content['Code Coverage']);
$content['Profiling'] = [ $content['Profiling'] = [
[ [