I want to create a set of command-line utilities in python that would be used like so:
python utility.py command1 -option arg
Very similar to django management commands. Is there any library that eases the creation of such commands?
I want to create a set of command-line utilities in python that would be used like so:
python utility.py command1 -option arg
Very similar to django management commands. Is there any library that eases the creation of such commands?
You just want to create a two-level command? You should use argparse -- it's simple enough, is similar to optparse but makes the two-level command thing easy, and will be in the standard library with Python 2.7.