3 ms·
Have you tried looking at docopt? There are cases where it is not flexible enough but it is good for quick and dirty little scripts because: * you use the doc
by atoav 8y ago
Have you tried looking at docopt?
There are cases where it is not flexible enough but it is good for quick and dirty little scripts because:
* you use the docstring to generate the args. This way you always have a minimum usage that is valid
* Argument parsing is a bit more limited than doimg it yourself, but everything you usually need is there
* Docopt is exists not only for Python, but many other languages implemented it too.