Skip to content
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

Merged
merged 3 commits into from
Feb 27, 2016

Conversation

jashandeep-sohi
Copy link
Contributor

See #797

@@ -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:])
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

asvetlov added a commit that referenced this pull request Feb 27, 2016
Fix command line arg parsing; issue #797
@asvetlov asvetlov merged commit c4a7084 into aio-libs:master Feb 27, 2016
@asvetlov
Copy link
Member

Thanks!

@asvetlov asvetlov added this to the 0.22 milestone Feb 27, 2016
@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants