-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow mode selecting within combined short arguments. #45
Conversation
Your implementation is already good but see my final comment for a possible simpler implementation. I hope that you could also add additional tests in test_cli.py for different ways of specifying the mode, and for the different error messages that can occur here if wrong arguments are specified. |
from covert.__main__ import argparse # Import *after* capsys wraps stdout/stderr | ||
from covert.__main__ import argparse | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to remove the extra whitespace on line 6, but why remove the comment?
# For combined mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an empty line between tests.
Instead of giving mode separately like
-e '-Arrp
you can now just use-eArrp
.