MCPcopy Index your code
hub / github.com/python/cpython / get_argparse_options

Function get_argparse_options

PC/layout/support/options.py:133–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131
132@public
133def get_argparse_options():
134 for opt, info in OPTIONS.items():
135 help = "When specified, includes {}".format(info["help"])
136 if info.get("not-in-all"):
137 help = "{}. Not affected by --include-all".format(help)
138
139 yield "--include-{}".format(opt), help
140
141 for opt, info in PRESETS.items():
142 help = "When specified, includes default options for {}".format(info["help"])
143 yield "--preset-{}".format(opt), help
144
145
146def ns_get(ns, key, default=False):

Callers 1

mainFunction · 0.85

Calls 3

itemsMethod · 0.45
formatMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…