-
Notifications
You must be signed in to change notification settings - Fork 225
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
Magerun 7.0.0+ prints out short & long form parameters as the long form | Does not recognise shortform alias #1295
Comments
@furan917 The issues should be fixed. You can update your phar file to develop version by running Your example with The |
@cmuench Amazing! Thank you. I can confirm that the tested This was the purpose of the fake-param in testing, to validate the we get the correct error response I used This now prints out
We ignore the --shh option does not exist because, well, we purposely are generating this error haha. But we can see the alias's are now correct. All is well. |
@furan917 Great. I will deploy that fix then with the upcoming 7.2.0 release. |
Will be released, soon. |
Describe the bug
If you run a command that has the wrong argument in it, or in at least potentially one case the right argument, n98-magerun returns a list of allowed arguments however both the - & -- have the same text.
Expected behaviour
If I run
n98-magerun setup:static-content:deploy -fakeParamHere
it should return the expected option doesn't exist error with an output of the command and allowed/expected arguments.However when I run that, at least on all v7 version, I get the following output
as you can see, it doesn't correctly print the right shorthand.
Note: Expected output was from a run via bin/magento and the second one via n98-magerun on the same system and install running M2 v2.4.5-p2
Steps to reproduce the issue
Install any version from v7.0.0 to v7.1.0 and run
n98-magerun setup:static-content:deploy -fakeParamHere
to purposely generate the error message.Technical details
Replicated on Ubuntu 22/20, AmazonLinux 1/2 and Mac M2 venture 13.5.2. On all v7 tags, and testest on 2.4.4, 2.4.5-p2 and 2.4.6
Additional context
Also, I am still digging into it but also try:
./n98-magerun2.phar setup:static-content:deploy -f
(any v7 variant)vs
./n98-magerun2-6.1.1.phar setup:static-content:deploy -f
vs
bin/magento setup:static-content:deploy -f
Let me know if you also get magerun saying
"-f"
option does not exist but the bin/magento works or the"-s"
The text was updated successfully, but these errors were encountered: