diff --git a/src/Console/Command.php b/src/Console/Command.php
index 0a2f9cf2..cfd8f0d4 100644
--- a/src/Console/Command.php
+++ b/src/Console/Command.php
@@ -148,5 +148,7 @@ final class Command extends BaseCommand
$version = Container::getInstance()->get(Version::class);
$version->handleArguments(['--version']);
parent::showHelp();
+
+ (new Help($this->output))();
}
}
diff --git a/src/Console/Help.php b/src/Console/Help.php
new file mode 100644
index 00000000..4554b728
--- /dev/null
+++ b/src/Console/Help.php
@@ -0,0 +1,37 @@
+ */
+ private const HELP_MESSAGES = [
+ 'Pest Options:',
+ ' --init Initialise a standard Pest configuration',
+ ' --coverage Enable coverage and output to standard output',
+ ' --min=> Set the minimum required coverage percentage (), and fail if not met',
+ ' --group=> Only runs tests from the specified group(s)',
+ ];
+
+ /** @var OutputInterface */
+ private $output;
+
+ public function __construct(OutputInterface $output)
+ {
+ $this->output = $output;
+ }
+
+ public function __invoke(): void
+ {
+ foreach (self::HELP_MESSAGES as $message) {
+ $this->output->writeln($message);
+ }
+ }
+}