[Twisted-Python] Implementing parseargs or getopt using twisted trial

Jean-Paul Calderone exarkun at divmod.com
Wed Jan 17 14:51:37 EST 2007

On Wed, 17 Jan 2007 10:31:50 -0800, Vishal Sethia <sethia.vishal at gmail.com> wrote:
>How do I implement user defined command line options in addition to the
>default switches that are available while running twisted trial.  For ex. if
>I have my own py file which I execute using the python compiler has the
>following line of code to support several command line options, how do I
>achieve this using twisted trial

This isn't supported.  So, the way you achieve it is by modifying the
trial script and submitting a patch to Twisted. :)

Additionally, Options in Twisted programs are typically parsed using
twisted.python.usage, not getopt or optparse or argparse or getarg or
argopt or optarg.


More information about the Twisted-Python mailing list