class documentation
class ServerOptions(usage.Options, ReactorSelectionMixin): (source)
Known subclasses: twisted.scripts._twistd_unix.ServerOptions
, twisted.scripts._twistw.ServerOptions
Constructor: ServerOptions(*a, **kw)
Undocumented
Method | __init__ |
Undocumented |
Method | opt |
Run the application in the Python Debugger (implies nodaemon), sending SIGUSR2 will drop into debugger |
Method | opt |
Print an insanely verbose log of everything that happens. Useful when debugging freezes or locks in complex code. |
Method | parse |
The guts of the command-line parser. |
Method | post |
I am called after the options are parsed. |
Class Variable | comp |
Undocumented |
Class Variable | longdesc |
Undocumented |
Class Variable | opt |
Undocumented |
Class Variable | opt |
Undocumented |
Instance Variable | stdout |
Undocumented |
Property | sub |
Undocumented |
Class Variable | _get |
Undocumented |
Inherited from Options
:
Method | __str__ |
Undocumented |
Method | get |
Returns a string containing a description of these options and how to pass them to the executed file. |
Method | get |
Undocumented |
Method | opt |
Display this help and exit. |
Method | opt |
Display Twisted version and exit. |
Method | parse |
I am called with any leftover arguments which were not options. |
Class Variable | completion |
Undocumented |
Class Variable | default |
Undocumented |
Class Variable | parent |
Undocumented |
Instance Variable | defaults |
Undocumented |
Instance Variable | docs |
Undocumented |
Instance Variable | long |
Undocumented |
Instance Variable | opts |
Undocumented |
Instance Variable | short |
Undocumented |
Instance Variable | sub |
Undocumented |
Instance Variable | sub |
Undocumented |
Instance Variable | synonyms |
Undocumented |
Method | _gather |
Gather up boolean (flag) options. |
Method | _gather |
Gather up options with their own handler methods. |
Method | _gather |
Gather options which take a value. |
Method | _generic |
Undocumented |
Instance Variable | _dispatch |
Undocumented |
Inherited from ReactorSelectionMixin
(via Options
):
Method | opt |
Display a list of possibly available reactor names. |
Method | opt |
Which reactor to use (see --help-reactors for a list of possibilities) |
Class Variable | _get |
Undocumented |
Run the application in the Python Debugger (implies nodaemon), sending SIGUSR2 will drop into debugger
Print an insanely verbose log of everything that happens. Useful when debugging freezes or locks in complex code.
overrides
twisted.python.usage.Options.postOptions
overridden in
twisted.scripts._twistd_unix.ServerOptions
I am called after the options are parsed.
Override this method in your subclass to do something after the options have been parsed and assigned, like validate that all options are sane.