-
Notifications
You must be signed in to change notification settings - Fork 577
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
Top-level help command is broken #1629
Comments
* Otherwise `--help` for a top-level listing of commands fails and therefore t/44-scripts.t. * See mojolicious/mojo#1629
I guess this commit causes the problem: d009374 Ironically, you introduced it because I was asking for it and it actually works to detect invalid arguments. The only problem is that it also considers |
Yes, this is a bug and needs to be fixed. |
By the way, I've already added a workaround for openQA. So at least for us there's no need to rush it. (Better do the improvement right this time.) |
I'm surprised that we don't have a test case yet for |
Steps to reproduce the behavior
mojo help
Expected behavior
List available commands with short descriptions (according to https://docs.mojolicious.org/Mojolicious/Commands#help) and a zero return code. It would also be nice if
--help
would work (and not justhelp
without dashes).Actual behavior
Invalid command "help".
is printed with return code 2.The text was updated successfully, but these errors were encountered: