Skip to content

Commit 639aeb5

Browse files
kodieadhocore
authored andcommitted
Just pass the colorizer as the help parameter in the custom help readme example
1 parent 0439020 commit 639aeb5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,13 @@ class InitCommand extends Ahc\Cli\Input\Command
172172

173173
$help = '<cyan>Custom help screen</end>';
174174
$writer = new Ahc\Cli\Output\Writer();
175-
$rendered_help = $writer->colorizer()->colors($help);
176175

177176
$this
178177
->argument('<arrg>', 'The Arrg')
179178
->argument('[arg2]', 'The Arg2')
180179
->option('-a --apple', 'The Apple')
181180
->option('-b --ball', 'The ball')
182-
->help($rendered_help)
181+
->help($writer->colorizer()->colors($help))
183182
// Usage examples:
184183
->usage(
185184
// append details or explanation of given example with ` ## ` so they will be uniformly aligned when shown

0 commit comments

Comments
 (0)