[Twisted-Python] Argument handling question?

Andrew Bennetts andrew-twisted at puzzling.org
Thu Jun 17 03:05:28 EDT 2004

On Thu, Jun 17, 2004 at 02:34:22AM -0400, Jp Calderone wrote:
> trust_no_1 at spymac.com wrote:
> >Fisrt excuse me for my poor english...my mother tongue is french...
> >
> >It could seems to be an 'idiot' question but my problem is quite simple:
> >How do I get / deal with extra parameters (not handled by twistd) from
> >the command line launching my app
> >example:
> >twistd -noy my_first_twist_test.py --misc=i_wanna_get_this
> >
>   twistd does not support this.  Configuration is intended to be put 
> inside "my_first_twist_test.py" directly.  If this is not appropriate 
> for the application, then twistd may not be the appropriate tool to use.

That said, you could work around this by putting your extra configuration in
an environment variable.

But as Jp says, that would be going against the intended use of twistd.


More information about the Twisted-Python mailing list