r/Python • • Jun 18 '13

Creating python command-line applications

http://pauloortins.com/creating-python-command-line-applications/
0 Upvotes

20 comments sorted by

View all comments

10

u/westurner Jun 18 '13

7

u/ScriptSimian Jun 18 '13

I was going to post argparse. Building a CLI as suggested is error prone and not to be undertaken except for didactic purposes.

1

u/pauloortins Jun 18 '13

Agree, the best way is using optparse or argparse =D

3

u/abledanger Jun 18 '13

Just found optparse yesterday, even though it's a standard library. It's awesome.

10

u/nemec Jun 18 '13

optparse is deprecated, I'd stick to argparse (which is brilliant, IMO). (for proof, check out the 2.7 docs)

2

u/talideon Jun 18 '13

Or better yet: docopt.