()
| 30 | |
| 31 | |
| 32 | def parser_args(): |
| 33 | parser = argparse.ArgumentParser() |
| 34 | parser.add_argument("--repo_dir", type=str, help="Repository directory") |
| 35 | parser.add_argument("--python_style_ext", |
| 36 | type=str, |
| 37 | nargs="+", |
| 38 | default=[".py"], |
| 39 | help="File types to process with python-style comments") |
| 40 | parser.add_argument("--bash_style_ext", |
| 41 | type=str, |
| 42 | nargs="+", |
| 43 | default=[".sh"], |
| 44 | help="File types to process with bash-style comments") |
| 45 | parser.add_argument("--c_style_ext", |
| 46 | type=str, |
| 47 | nargs="+", |
| 48 | default=[ |
| 49 | ".c", |
| 50 | ".cpp", |
| 51 | ".cu", |
| 52 | ".h", |
| 53 | ".hpp", |
| 54 | ".cuh", |
| 55 | ".cc", |
| 56 | ".hip", |
| 57 | ".tr", |
| 58 | ], |
| 59 | help="File types to process with C-style comments") |
| 60 | args = parser.parse_args() |
| 61 | return args |
| 62 | |
| 63 | |
| 64 | # These get_header_* functions are ugly, but they work :) |
no outgoing calls
no test coverage detected
searching dependent graphs…