MCPcopy Index your code
hub / github.com/RustPython/RustPython / parse_args

Function parse_args

scripts/whats_left.py:46–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45
46def parse_args():
47 parser = argparse.ArgumentParser(description="Process some integers.")
48 parser.add_argument(
49 "--signature",
50 action="store_true",
51 help="print functions whose signatures don't match CPython's",
52 )
53 parser.add_argument(
54 "--doc",
55 action="store_true",
56 help="print elements whose __doc__ don't match CPython's",
57 )
58 parser.add_argument(
59 "--json",
60 action="store_true",
61 help="print output as JSON (instead of line by line)",
62 )
63 parser.add_argument(
64 "--no-default-features",
65 action="store_true",
66 help="disable default features when building RustPython",
67 )
68 parser.add_argument(
69 "--features",
70 action="append",
71 help="which features to enable when building RustPython (default: [])",
72 default=[],
73 )
74
75 args = parser.parse_args()
76 return args
77
78
79args = parse_args()

Callers 1

whats_left.pyFile · 0.70

Calls 2

parse_argsMethod · 0.95
add_argumentMethod · 0.45

Tested by

no test coverage detected