Opened 3 years ago

Closed 3 years ago

#5672 defect closed invalid (invalid)

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)

comment:1 Changed 3 years ago by exarkun

  • Resolution set to invalid
  • Status changed from new to closed

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.