[Tutor] Argparse and how best to use it
Alex Kleider
akleider at sonic.net
Fri Oct 25 00:45:00 CEST 2013
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.
More information about the Tutor
mailing list