-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
twistd should print the subcommand name in its usage error messages #6460
Labels
Comments
It should be quite easy to write a unit test for this and (if necessary) review and fix any existing unit tests that are broken by it. |
PR located at: #1504 |
|
|
(Fixed in b1897c9 which didn't follow the commit message format) |
(It's not in review now that it's merged.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Certain twistd usage errors can cause confusion because they don't print the name of the subcommand. eg
In this case -n is a valid twistd option but an invalid twistd procmon option.
Another good reason for printing the subcommand sequence is that the error line is often preceded by a full usage message which pushes the original command line off the page. Having the subcommand in the error message will make it obvious in cases where you typed an unintended (but valid) subcommand.
eg twistd mail_pop instead of twistd mail_imap (assuming for a moment that those two plugins existed).
Attachments:
Searchable metadata
The text was updated successfully, but these errors were encountered: