Skip to content

[HelpCommand] reset command definition if instance of self #9266

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

Closed
wants to merge 4 commits into from

Conversation

bamarni
Copy link
Contributor

@bamarni bamarni commented Oct 10, 2013

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Todo: squash if accepted
License of the code: MIT

When running php app/console help, it displays an extra command argument at the beginning.

It's because application definition is getting merged into help command (when running it the first time), then, when help command is retrieving "help", application returns the same object (with this extra argument).

Resetting command configuration in that special case removes the extra arg.

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.

1 participant