Ticket #5672 defect closed invalid

Opened 13 months ago

Last modified 13 months ago

Order of command line arguments?

Reported by: jlindenbaum Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description

I just discovered an, in my mind, oddity with regards to the order of command line arguments in twistd.

Running the following yields an error "Unrecognized option --pidfile". The usage hints that are printed also do not show --pidfile as a valid option.

twistd -r epoll web --class=pyapns.server.APNSServer --port=7077 --pidfile=/tmp/twistd_mascot.pid

But, running the following works as expected, with a pid file in /tmp

twistd --pidfile=/tmp/twistd_mascot.pid -r epoll web --class=pyapns.server.APNSServer --port=7077

Did I misread something in the documentation? Is there really an important order of command line arguments to start twistd?

Misc. Details: - Ubuntu 11.04 - Twistd 12.0.0 - Python 2.7

Regards,

Change History

1

Changed 13 months ago by exarkun

  • status changed from new to closed
  • resolution set to invalid

Is there really an important order of command line arguments to start twistd?

Yes. In brief, twistd has certain options and the web plugin has certain options. For more details, and for future questions like this, please use the mailing list or the IRC channel. Thanks!

Note: See TracTickets for help on using tickets.