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

Garry Hodgson garry at sage.att.com
Thu Aug 18 15:29:13 EDT 2005

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?


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?

More information about the Twisted-Python mailing list