On 2017-06-14 12:22, Mats Wichmann wrote:
Of course if you do any serious argument handling, it's better to use something like optparse (and earlier argparse) module so you're not reinventing a wheel which has been massively worked on already.
At the suggestion of a posting on this list some years ago, I've been using docopt rather than optparse or argparse and have found it provides much more with much less work.
pip install docopt
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor