()
| 130 | |
| 131 | |
| 132 | def 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 | |
| 151 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…