feat: improves help table

This commit is contained in:
Nuno Maduro
2023-02-17 21:36:13 +00:00
parent b4b4bf3685
commit 957dabc3f0

View File

@ -90,7 +90,6 @@ final class Help implements HandlesArguments
*/
private function getContent(): array
{
// Access the PHPUnit help class's private const HELP
$helpReflection = new \ReflectionClass(PHPUnitHelp::class);
/** @var array<string, array<int, array{arg: string, desc: string}>> $content */
@ -101,6 +100,17 @@ final class Help implements HandlesArguments
'desc' => 'Initialise a standard Pest configuration',
]] + $content['Configuration'];
$content['Selection'] = [
[
'arg' => '--todos',
'desc' => 'Output to standard output the list of todos',
],
[
'arg' => '--retry',
'desc' => 'Run non-passing tests first and stop execution upon first error or failure',
],
] + $content['Selection'];
$content['Code Coverage'] = [
[
'arg' => '--coverage ',
@ -112,6 +122,15 @@ final class Help implements HandlesArguments
],
] + $content['Code Coverage'];
$content['Profiling'] = [
[
'arg' => '--profile ',
'desc' => 'Output to standard output the top ten slowest tests',
],
];
unset($content['Miscellaneous']);
return $content;
}
}