Handling of no arguments passed.
This commit is contained in:
parent
2e6352cb13
commit
986fdbe7a7
@ -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"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user