forked from MisanoGo/FoxLin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (23 loc) · 637 Bytes
/
main.py
File metadata and controls
28 lines (23 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python3
import argparse
from handlers.handler import system_handler
def main():
parser = argparse.ArgumentParser(
prog='main.py',
description="a client for running foxlin tools.",
usage="""
python main.py -run [pytest|make_docs]
or
./main.py -run [pytest|docs]
"""
)
parser.add_argument('-run', type=str)
args = parser.parse_args()
if args.run == "pytest":
system_handler.check_command_handlers()
elif args.run == "docs":
system_handler.make_docs()
else:
system_handler.check_command_handlers()
if __name__ == "__main__":
main()