-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 command line arg parsing; issue #797 #798
Conversation
@@ -349,7 +349,7 @@ def main(argv): | |||
type=int, | |||
default="8080" | |||
) | |||
args, extra_args = arg_parser.parse_known_args(argv) | |||
args, extra_args = arg_parser.parse_known_args(argv[1:]) |
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.
Maybe better to pass sys.argv[1:]
into main()
call?
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 don't think it really matters, either is fine. Change it if you like.
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.
Please change. I have a guts feeling that accepting sys.argv[1:]
is better.
Also I saw the similar approach in past a veral times.
Fix command line arg parsing; issue #797
Thanks! |
See #797