()
| 83 | |
| 84 | |
| 85 | def main(): |
| 86 | p = argparse.ArgumentParser(description="Check and fix style of changed files") |
| 87 | p.add_argument("-n", "--dry-run", action="store_true", help="Don't fix, only warn") |
| 88 | args = p.parse_args() |
| 89 | filenames = filter_ignored(filter_cpp(recursive_file_list("src"))) |
| 90 | if not args.dry_run: |
| 91 | reformat(filenames) |
| 92 | else: |
| 93 | sys.exit(warn(filenames)) |
| 94 | |
| 95 | |
| 96 | if __name__ == "__main__": |
no test coverage detected