class documentation
Command line options for twist.
Method | __init__ |
Undocumented |
Method | get |
Returns a string containing a description of these options and how to pass them to the executed file. |
Method | install |
Install the reactor. |
Method | opt |
Log to file. ("-" for stdout, "+" for stderr; default: "-") |
Method | opt |
Log file format. (options: "text", "json"; default: "text" if the log file is a tty, otherwise "json") |
Method | opt |
Set default log level. (options: {options}; default: "{default}") |
Method | opt |
The name of the reactor to use. (options: {options}) |
Method | opt |
Print version and exit. |
Method | parse |
The guts of the command-line parser. |
Method | post |
I am called after the options are parsed. |
Method | select |
Set fileLogObserverFactory to the default appropriate for the chosen logFile. |
Class Variable | default |
Undocumented |
Instance Variable | longdesc |
Undocumented |
Property | plugins |
Undocumented |
Property | sub |
Undocumented |
Inherited from Options
:
Method | __str__ |
Undocumented |
Method | get |
Undocumented |
Method | opt |
Display this help 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 |
overrides
twisted.python.usage.Options.getSynopsis
Returns a string containing a description of these options and how to pass them to the executed file.
Log file format. (options: "text", "json"; default: "text" if the log file is a tty, otherwise "json")
overrides
twisted.python.usage.Options.postOptions
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.