| 8 | |
| 9 | |
| 10 | def get_args(): |
| 11 | parser = argparse.ArgumentParser(description=f"codetext parser {20*'='}") |
| 12 | |
| 13 | parser.add_argument('paths', nargs='*', default=['.'], |
| 14 | help='list of the filename/paths.') |
| 15 | parser.add_argument("--version", action="version", |
| 16 | version=pkg_resources.get_distribution("codetext").version) |
| 17 | parser.add_argument("-l", "--language", |
| 18 | help='''Target the programming languages you want to |
| 19 | analyze.''') |
| 20 | parser.add_argument("-o", "--output_file", |
| 21 | help='''Output file (e.g report.json). |
| 22 | ''', |
| 23 | type=str) |
| 24 | parser.add_argument("--json", |
| 25 | help='''Generate json output as a transform of the |
| 26 | default output''', |
| 27 | action="store_true") |
| 28 | parser.add_argument("--verbose", |
| 29 | help='''Print progress bar''', |
| 30 | action="store_true") |
| 31 | |
| 32 | return parser.parse_args() |
| 33 | |
| 34 | |
| 35 | def main(): |