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

Function parse_args

scripts/prepare-for-update-assertions.py:132–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131
132def parse_args():
133 args_parser = argparse.ArgumentParser(
134 description="Removes newlines from all statements in a specific function of one test file"
135 )
136 args_parser.add_argument("filename", help="Path of test file")
137 args_parser.add_argument("function", help="Name of the test function")
138 args_parser.add_argument(
139 "--dry-run", default=False, action="store_true", help="Show prospect changes and do not modify the file"
140 )
141 args_parser.add_argument(
142 "--exit-code", default=False, action="store_true", help="Indicate changes via non-zero exit code"
143 )
144
145 if len(sys.argv) == 1:
146 args_parser.print_help()
147 sys.exit(1)
148 return args_parser.parse_args()
149
150
151if __name__ == "__main__":

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…