-
Notifications
You must be signed in to change notification settings - Fork 356
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
overhauled argument parsing #4
base: master
Are you sure you want to change the base?
Conversation
… passed causing ip->name resolution to fail 100% of the time
Fixed bug in socket.getnameinfo() call
re-wrote the argument parsing, using argparse
You seriously rule man!! I'll test out the features in my VM lab. This Shawn
|
Hey, Thanks again for putting in the work to get the ArgumentParser working! I tested all of the functionality, and had to make a few changes to the code you revised. I'm a bit new to using "git" on the command line. I ended up just using "--force" to force a push. For future reference, how do I correctly make changes to your code suggestions, push my changes back to your branch, and eventually to the master branch? I want to make sure you're recognized as a contributor. Thanks a ton! -Shawn |
Hi shawn,
|
Hi,
I re-wrote the argument parsing section of the script using the python argparse library, cuts down the code by a significant amount.. I haven't tried all of the options to see if everything works as before only because its getting late over here :P, so before merging your definitely going to want to test everything out!
Also fixed the shebang to be friendlier when multiple python versions are installed.
Again, awesome script man!
Cheers