MCPcopy Index your code
hub / github.com/bpython/bpython / options_callback

Function options_callback

bpython/urwid.py:1115–1148  ·  view source on GitHub ↗
(group)

Source from the content-addressed store, hash-verified

1113 translations.init()
1114
1115 def options_callback(group):
1116 group.add_argument(
1117 "--twisted",
1118 "-T",
1119 action="store_true",
1120 help=_("Run twisted reactor."),
1121 )
1122 group.add_argument(
1123 "--reactor",
1124 "-r",
1125 help=_(
1126 "Select specific reactor (see --help-reactors). "
1127 "Implies --twisted."
1128 ),
1129 )
1130 group.add_argument(
1131 "--help-reactors",
1132 action="store_true",
1133 help=_("List available reactors for -r."),
1134 )
1135 group.add_argument(
1136 "--plugin",
1137 "-p",
1138 help=_(
1139 "twistd plugin to run (use twistd for a list). "
1140 'Use "--" to pass further options to the plugin.'
1141 ),
1142 )
1143 group.add_argument(
1144 "--server",
1145 "-s",
1146 type=int,
1147 help=_("Port to run an eval server on (forces Twisted)."),
1148 )
1149
1150 # TODO: maybe support displays other than raw_display?
1151 config, options, exec_args = bpargs.parse(

Callers

nothing calls this directly

Calls 1

_Function · 0.90

Tested by

no test coverage detected