We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ac531 commit 0439020Copy full SHA for 0439020
README.md
@@ -170,12 +170,16 @@ class InitCommand extends Ahc\Cli\Input\Command
170
{
171
parent::__construct('init', 'Init something');
172
173
+ $help = '<cyan>Custom help screen</end>';
174
+ $writer = new Ahc\Cli\Output\Writer();
175
+ $rendered_help = $writer->colorizer()->colors($help);
176
+
177
$this
178
->argument('<arrg>', 'The Arrg')
179
->argument('[arg2]', 'The Arg2')
180
->option('-a --apple', 'The Apple')
181
->option('-b --ball', 'The ball')
- ->help('Custom help screen (if omitted one will be generated)')
182
+ ->help($rendered_help)
183
// Usage examples:
184
->usage(
185
// append details or explanation of given example with ` ## ` so they will be uniformly aligned when shown
0 commit comments