<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I came across some problem using 'twistd' utility - that I would not have expected from it. The problem is - using 'twistd' to start application that requires command-line arguments. In other words, I would expect that 'twistd' passes command-line arguments to Python application - just as Python does.&nbsp;<div><br></div><div>But... I get following error:</div><div><br></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">Usage: twistd [options]</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">Options:</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp; &nbsp; &nbsp;--savestats &nbsp; &nbsp; &nbsp; &nbsp;save the Stats object rather than the text output of</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; the profiler.</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp;-o, --no_save &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;do not save state on shutdown</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp;-e, --encrypted &nbsp; &nbsp; &nbsp; &nbsp;The specified tap/aos/xml file is encrypted.</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp;.........................</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp;.........................</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>/usr/bin/twistd: option -a not recognized</b></span></font></div><div><br></div><div><br></div><div>when application is started either as '<font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">twistd -y &lt;fileName.py&gt;</span></font>' or '<font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">twistd --file &lt;fileName.py&gt;</span></font>' followed by a list of command-line arguments&nbsp;</div><div><br></div><div>My question is: how is it possible to use 'twistd' to start applications that do require command-line arguments? Does anyone have suggestions?</div><div><br></div><div>In other words, I want to be able to start application using 'twistd' - just as it would have been started using standard Python:</div><div><br></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt; python &nbsp; &nbsp;&lt;fileName.py&gt; [argList]</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&gt; <b>twistd -y</b> &lt;fileName.py&gt; [<b>argList</b>]</span></font></div><div><br></div><div><br></div><div><br></div><div>Second question to Twisted development team: how such an important case has slipped attention? I suggest this to be added to bug fix requests, with high priority.</div><div><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Kind regards,</div><div><br></div><div>Valeriy Pogrebitskiy</div><div><a href="mailto:vpogrebi@verizon.net">vpogrebi@verizon.net</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"> </div><br></div></body></html>