Rewrite tests
This commit is contained in:
@@ -5,11 +5,19 @@ from pathlib import Path
|
||||
|
||||
|
||||
def main (args):
|
||||
print(args)
|
||||
in_file: Path = args["in_file"]
|
||||
out_dir: Path = args["out"]
|
||||
if not in_file.exists():
|
||||
raise FileNotFoundError("Input file not found!")
|
||||
|
||||
out_dir.mkdir(exist_ok=True)
|
||||
|
||||
None
|
||||
|
||||
def parse_args():
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument("in", type=Path)
|
||||
parser.add_argument("in_file", type=Path)
|
||||
parser.add_argument("--out", type=Path, required=False, default=Path('.'))
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
Reference in New Issue
Block a user