Closed roadsideseb closed 11 years ago
I've updated the PR after your refactoring of the main()
functions. I've added the ArgumentParser
so that it can be used by any subclass of Project
. There might be a nicer way to allow adding arguments. I have the feeling there's a more elegant solution to add arguments than using a class method. Any suggestions?
I've added a
--settings
which allows to specify the settings file to use on the command line similar to howmanage.py
works. I am not sure whetherargparse
is the right choice here, though. Since Django seems to use optparse, that might be more appropriate and I don't know what the best way would be looking towards Python 3 support. What do you think?