MCPcopy Create free account
hub / github.com/scanny/python-pptx / parse_args

Function parse_args

spec/gen_spec/gen_spec.py:351–367  ·  view source on GitHub ↗

Return arguments object formed by parsing the command line used to launch the program.

(spectypes)

Source from the content-addressed store, hash-verified

349# ============================================================================
350
351def parse_args(spectypes):
352 """
353 Return arguments object formed by parsing the command line used to launch
354 the program.
355 """
356 arg_parser = argparse.ArgumentParser()
357 arg_parser.add_argument(
358 "-c", "--constants",
359 help="emit constants instead of spec dict",
360 action="store_true"
361 )
362 arg_parser.add_argument(
363 "spectype",
364 help="specifies the spec type to be generated",
365 choices=spectypes
366 )
367 return arg_parser.parse_args()
368
369
370# ============================================================================

Callers 1

gen_spec.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…