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

Function parse_args

PCbuild/get_external.py:113–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111
112
113def parse_args():
114 p = argparse.ArgumentParser()
115 p.add_argument('-v', '--verbose', action='store_true')
116 p.add_argument('-b', '--binary', action='store_true',
117 help='Is the dependency in the binary repo?')
118 p.add_argument('-r', '--release', action='store_true',
119 help='Download from GitHub release assets instead of branch')
120 p.add_argument('-O', '--organization',
121 help='Organization owning the deps repos', default='python')
122 p.add_argument('-e', '--externals-dir', type=pathlib.Path,
123 help='Directory in which to store dependencies',
124 default=pathlib.Path(__file__).parent.parent / 'externals')
125 p.add_argument('tag',
126 help='tag of the dependency')
127 return p.parse_args()
128
129
130def main():

Callers 1

mainFunction · 0.70

Calls 2

parse_argsMethod · 0.95
add_argumentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…