MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeText-parser / get_args

Function get_args

src/codetext/__main__.py:10–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def 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
35def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected