Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

use argparse .


I'm reading through a bit of the Python docs right now, but after I finish I'll check out argparse.

Much appreciated. :)


My pleasure. In case I have time I ll try forking it. :)


argparse is such a cool module! Whoever knew that command line arguments could be dealt with in a such a beautiful way?

I've integrated it into reddit.py and it made the `if __name__ == "__main__"` block look much more professional.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: