1
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

View File

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