Part of twisted.scripts.trial View Source View In Hierarchy
Split Table into Classes Show Methods in One Table
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 136 | Method | __init__ | Undocumented |
| 140 | Method | opt_coverage | Generate coverage information in the _trial_temp/coverage. Requires |
| 180 | Method | opt_testmodule | Filename to grep for test cases (-*- test-case-name) |
| 201 | Method | opt_spew | Print an insanely verbose log of everything that happens. Useful |
| 207 | Method | opt_help_reporters | Undocumented |
| 217 | Method | opt_disablegc | Disable the garbage collector |
| 221 | Method | opt_tbformat | Specify the format to display tracebacks with. Valid formats are |
| 231 | Method | opt_extra | Add an extra argument. (This is a hack necessary for interfacing with |
| 241 | Method | opt_recursionlimit | see sys.setrecursionlimit() |
| 249 | Method | opt_random | Undocumented |
| 262 | Method | opt_without_module | Fake the lack of the specified modules, separated with commas. |
| 273 | Method | parseArgs | I am called with any leftover arguments which were not options. |
| 288 | Method | postOptions | I am called after the options are parsed. |
| 278 | Method | _loadReporterByName | Undocumented |
Inherited from Options:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 168 | Method | __hash__ | Define a custom hash function so that Options instances can be used |
| 176 | Method | opt_help | Display this help and exit. |
| 183 | Method | opt_version | Undocumented |
| 190 | Method | parseOptions | The guts of the command-line parser. |
| 412 | Method | __str__ | Undocumented |
| 415 | Method | getSynopsis | Returns a string containing a description of these options and how to |
| 438 | Method | getUsage | Undocumented |
| 267 | Method | _generic_flag | Undocumented |
| 274 | Method | _gather_flags | Gather up boolean (flag) options. |
| 301 | Method | _gather_parameters | Gather options which take a value. |
| 342 | Method | _gather_handlers | Gather up options with their own handler methods. |
Inherited from ReactorSelectionMixin:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 534 | Method | opt_help_reactors | Display a list of possibly available reactor names. |
| 544 | Method | opt_reactor | Which reactor to use (see --help-reactors for a list of possibilities) |
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 168 | Method | __hash__ | Define a custom hash function so that Options instances can be used |
| 136 | Method | __init__ | Undocumented |
| 412 | Method | __str__ | Undocumented |
| 415 | Method | getSynopsis | Returns a string containing a description of these options and how to |
| 438 | Method | getUsage | Undocumented |
| 140 | Method | opt_coverage | Generate coverage information in the _trial_temp/coverage. Requires |
| 217 | Method | opt_disablegc | Disable the garbage collector |
| 231 | Method | opt_extra | Add an extra argument. (This is a hack necessary for interfacing with |
| 176 | Method | opt_help | Display this help and exit. |
| 534 | Method | opt_help_reactors | Display a list of possibly available reactor names. |
| 207 | Method | opt_help_reporters | Undocumented |
| 249 | Method | opt_random | Undocumented |
| 544 | Method | opt_reactor | Which reactor to use (see --help-reactors for a list of possibilities) |
| 241 | Method | opt_recursionlimit | see sys.setrecursionlimit() |
| 201 | Method | opt_spew | Print an insanely verbose log of everything that happens. Useful |
| 221 | Method | opt_tbformat | Specify the format to display tracebacks with. Valid formats are |
| 180 | Method | opt_testmodule | Filename to grep for test cases (-*- test-case-name) |
| 183 | Method | opt_version | Undocumented |
| 262 | Method | opt_without_module | Fake the lack of the specified modules, separated with commas. |
| 273 | Method | parseArgs | I am called with any leftover arguments which were not options. |
| 190 | Method | parseOptions | The guts of the command-line parser. |
| 288 | Method | postOptions | I am called after the options are parsed. |
| 274 | Method | _gather_flags | Gather up boolean (flag) options. |
| 342 | Method | _gather_handlers | Gather up options with their own handler methods. |
| 301 | Method | _gather_parameters | Gather options which take a value. |
| 267 | Method | _generic_flag | Undocumented |
| 278 | Method | _loadReporterByName | Undocumented |
I am called with any leftover arguments which were not options.
Override me to do something with the remaining arguments on the command line, those which were not flags or options. e.g. interpret them as a list of files to operate on.
Note that if there more arguments on the command line than this method accepts, parseArgs will blow up with a getopt.error. This means if you don't override me, parseArgs will blow up if I am passed any arguments at all!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.