[Twisted-Python] passing command line args to twistd daemons

i've got an application (invoked via: twistd -noy fpc.py) that i'd like to use for multiple purposes by passing command line arguments. when i do so, twistd objects that they are invalid arguments. i'd hoped for some magic arg that partitions the args into twistd arguments and app arguments, something like: twist -noy fpc.py -- -x -y -z but no such luck. so, is there a way to accomplish this? if not, what is the preferred mechanism for customizing an application's behavior at startup time? thanks ---- Garry Hodgson, Technical Consultant, AT&T Labs Your love, your anger, your kindness, your hate. All of it creates the future for you and your children. What kind of future are you creating today?

On Thu, 2005-08-18 at 15:29 -0400, Garry Hodgson wrote:
Not at the moment. Two alternatives (not contradictory) we've been considering: 1. Turn twistd into a library, so you can write your own command-line tools reusing its functionality. Patches accepted, this should be a pretty easy refactor. 2. Adding coil support to twistd and twisted in general (http://itamarst.org/software/coil-0.1.1.tar.gz); in addition to the general configuration power this gives you, coil files can also be overridden by command-line tools in a generic way. Short term, you could have the .tac point at a configuration file which you could edit separately.

On Thu, 2005-08-18 at 15:29 -0400, Garry Hodgson wrote:
Not at the moment. Two alternatives (not contradictory) we've been considering: 1. Turn twistd into a library, so you can write your own command-line tools reusing its functionality. Patches accepted, this should be a pretty easy refactor. 2. Adding coil support to twistd and twisted in general (http://itamarst.org/software/coil-0.1.1.tar.gz); in addition to the general configuration power this gives you, coil files can also be overridden by command-line tools in a generic way. Short term, you could have the .tac point at a configuration file which you could edit separately.
participants (3)
-
Garry Hodgson
-
Itamar Shtull-Trauring
-
Siegmund Fuehringer