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
[Console] Help command reports wrong usage in a single command application #27953
Comments
@Chi-teck I don't understand your issue. What behavior are you expecting ? |
@blixit I expect that help command prints correct command usage. Currently of you copy/paste usage from help output you will get the error mentioned above. |
Status: Reviewed |
As far as I can see the issue happens because of the resetting of the arguments to empty in the After playing around with the example and removing this line the expected results happen. That being said I am not sure really sure why this resetting of arguments was done in the first place. I would be happy to make a PR for this change if people think it is the right approach. |
Fixed in #29617. |
Symfony version(s) affected: 4.1.1
Description
The usage section of help command output should not print command name as it is not supported.
How to reproduce
./bin/test.php foo
) and make sure it works as expected../bin/test.php echo foo
).The text was updated successfully, but these errors were encountered: