Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the command help #36

Closed
tacman opened this issue Oct 2, 2022 · 3 comments
Closed

How to set the command help #36

tacman opened this issue Oct 2, 2022 · 3 comments

Comments

@tacman
Copy link
Contributor

tacman commented Oct 2, 2022

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
Copy link
Member

kbond commented Oct 2, 2022

This is duplicate of #37?

@tacman
Copy link
Contributor Author

tacman commented Oct 2, 2022

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.

@tacman tacman closed this as completed Oct 2, 2022
@kbond
Copy link
Member

kbond commented Oct 2, 2022

No worries, I figured that was the issue 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants