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

Changed commands to use command.name in the help #400

Merged
merged 1 commit into from
Jul 23, 2012

Conversation

stof
Copy link
Member

@stof stof commented Jul 16, 2012

The current code does not work for child classes: it gets the name too early as the child has not changed it yet at this point. using %command;name% replaces it only when the help needs to be displayed.

This is similar to doctrine/dbal#174

@travisbot
Copy link

This pull request passes (merged a723b73 into 34ac207).

@Ocramius
Copy link
Member

@stof: this may need to have the required versions of SF2 console bumped, no?

@stof
Copy link
Member Author

stof commented Jul 19, 2012

@Ocramius No, this feature is already available in 2.0: https://github.com/symfony/Console/blob/2.0/Command/Command.php#L447

@Ocramius
Copy link
Member

Aha, thought you did the PR because of some improvement :) thx

@stof
Copy link
Member Author

stof commented Jul 19, 2012

The improvement will be possible thanks to this change. See my comment on the dbal PR :)

guilhermeblanco added a commit that referenced this pull request Jul 23, 2012
Changed commands to use command.name in the help
@guilhermeblanco guilhermeblanco merged commit 619d29a into doctrine:master Jul 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants