-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix file argument #154
Fix file argument #154
Conversation
Signed-off-by: Maciej <mwkm00@gmail.com>
Signed-off-by: Maciej <mwkm00@gmail.com>
Thank you, @mwkm00! |
@mwkm00, it looks like the More info on black is here: /~https://github.com/psf/black Would you mind fixing that before I review this? |
Signed-off-by: Maciej <mwkm00@gmail.com>
Should be good now, I assumed exit code 1 would be acceptable after not delivering file arg, but the program goes to the help message and exits gracefully so exit code 0 is probably the way to go. Tests should be fixed now. |
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.
I like this approach. Nice. Thank you!
But the |
My bad, formatting. Thanks for patience. |
@vargenau, is that you were thinking? |
Hi, Yes, it works correctly now. Thank you for the quick fix. |
@goneall, would you please take a quick look too? 🙏 |
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.
LGTM
This fix should allow omitting --file argument (prints the help message if so), while still allowing to pass arguments like --verbose or --version without crashing.