First structure
This commit is contained in:
18
src/main.py
Normal file
18
src/main.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/python
|
||||
|
||||
from argparse import ArgumentParser
|
||||
from pathlib import Path
|
||||
|
||||
def main ():
|
||||
args = parse_args()
|
||||
|
||||
|
||||
def parse_args():
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument("in", type=Path, required=True)
|
||||
parser.add_argument("out", type=Path, required=False, default=Path('.'))
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user