On 24/10/2013 23:45, Alex Kleider wrote:
On 2013-10-24 08:38, Paradox wrote:
I am trying to learn about argparse and how best to incorporate it
into my scripts. I am using Python 2.7.5 on Ubuntu 13.10.
It seems from the argparse tutorial that all the arguments are
processed as global variables. Is that the standard way to do it or
do you normally (when doing real projects and not writing tutorials)
process the arguments in the main loop of the script?
Some one on this list recently recommended docopt rather than argparse.
I've been playing with it and find it far superior although there are
still a few issues that I haven't figured out.
Alex, if you've still problems I'd be inclined to ask on the main Python
mailing list as you're far more likely to get answers than here.
Failing that how about approach the author direct? From the Development
section here https://github.com/docopt/docopt it's vladi...@keleshev.com
--
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
Mark Lawrence
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor