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

Function parse_args

scripts/sort_class.py:249–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247
248
249def parse_args():
250 args_parser = argparse.ArgumentParser(
251 description="Sorts methods of GithubObject classes, also sorts attributes in _initAttributes and _useAttributes"
252 )
253 args_parser.add_argument("index_filename", help="Path of index file")
254 args_parser.add_argument(
255 "class_name",
256 nargs="+",
257 help="GithubObject class to sort, e.g. HookDelivery or github.HookDelivery.HookDeliverySummary",
258 )
259 args_parser.add_argument(
260 "--dry-run", default=False, action="store_true", help="show prospect changes and do not modify the file"
261 )
262 if len(sys.argv) == 1:
263 args_parser.print_help()
264 sys.exit(1)
265 return args_parser.parse_args()
266
267
268if __name__ == "__main__":

Callers 1

sort_class.pyFile · 0.70

Calls 1

parse_argsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…