1
0
Fork 0

Handling of no arguments passed.

This commit is contained in:
Alexander Andreev 2020-11-19 01:30:47 +04:00
parent 2e6352cb13
commit 986fdbe7a7
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ def parse_arguments(args: str) -> dict:
else out_dir.groupdict()["outdir"] }
def main() -> None:
if len(argv) == 1:
print(USAGE)
exit()
cargs = parse_common_arguments(' '.join(argv[1:]))
if not cargs is None:
if cargs["help"]: