MCPcopy
hub / github.com/psf/black / parse_args

Function parse_args

scripts/release.py:217–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215
216
217def parse_args() -> argparse.Namespace:
218 parser = argparse.ArgumentParser()
219 parser.add_argument(
220 "-a",
221 "--add-changes-template",
222 action="store_true",
223 help="Add the Unreleased template to CHANGES.md",
224 )
225 parser.add_argument(
226 "-d", "--debug", action="store_true", help="Verbose debug output"
227 )
228 args = parser.parse_args()
229 _handle_debug(args.debug)
230 return args
231
232
233def main() -> int:

Callers 1

mainFunction · 0.85

Calls 1

_handle_debugFunction · 0.85

Tested by

no test coverage detected