zenstruck / console-extra

A modular set of features to reduce configuration boilerplate for your Symfony commands.
MIT License
78 stars 3 forks source link

How to set the command help #36

Closed tacman closed 2 years ago

tacman commented 2 years ago
bin/console my:command --help 
bin/console make:crud --help 

Symfony's make:crud shows some help lines at the bottom, how is that set in an invokable command? I tried adding this to __invoke, but it didn't seem to work (although again, it might be related to lazy-loading).

        $this
            // the command help shown when running the command with the "--help" option
            ->setHelp('This is the help, not the description, and can be multiple lines.');
kbond commented 2 years ago

This is duplicate of #37?

tacman commented 2 years ago

This is duplicate of #37?

I'm having terrible internet issues, github often times out, and I end up resubmitting the issue. So yes. Sigh.

kbond commented 2 years ago

No worries, I figured that was the issue 🙂