From d5fec40398ffe9a5c9cf601304a28cab329be772 Mon Sep 17 00:00:00 2001 From: Inhere Date: Thu, 12 May 2022 12:55:39 +0800 Subject: [PATCH] up: dont split show group and alone commands --- src/Decorate/ApplicationHelpTrait.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Decorate/ApplicationHelpTrait.php b/src/Decorate/ApplicationHelpTrait.php index ed7482d..f1e7adf 100644 --- a/src/Decorate/ApplicationHelpTrait.php +++ b/src/Decorate/ApplicationHelpTrait.php @@ -9,10 +9,10 @@ namespace Inhere\Console\Decorate; -use Inhere\Console\Handler\AbstractHandler; use Inhere\Console\Console; use Inhere\Console\ConsoleEvent; use Inhere\Console\Contract\CommandInterface; +use Inhere\Console\Handler\AbstractHandler; use Inhere\Console\IO\Input; use Inhere\Console\IO\Output; use Inhere\Console\Util\Show; @@ -208,10 +208,10 @@ public function showCommandList(): void } // add split title on both exists. - if (!$autoComp && $hasCommand && $hasGroup) { - $groupArr[] = PHP_EOL . '- Group Commands'; - $commandArr[] = PHP_EOL . '- Alone Commands'; - } + // if (!$autoComp && $hasCommand && $hasGroup) { + // $groupArr[] = PHP_EOL . '- Group Commands'; + // $commandArr[] = PHP_EOL . '- Alone Commands'; + // } $placeholder = 'No description of the command'; foreach ($groups as $name => $info) {