MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / parse_args

Function parse_args

src/scripts/rename.py:5–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def parse_args():
6 parser = argparse.ArgumentParser()
7 parser.add_argument(
8 '-d', '--base_dir',
9 type=str,
10 )
11 parser.add_argument(
12 '-p', '--print_only',
13 action='store_true'
14 )
15 parser.add_argument(
16 '-pf', '--postfix',
17 type=str
18 )
19 parser.add_argument(
20 '-t', '--type',
21 type=str,
22 required=True,
23 choices=['dir', 'file']
24 )
25 args = parser.parse_args()
26 return args
27
28
29def main(args):

Callers 1

rename.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected