fix arg count
This commit is contained in:
parent
e261596548
commit
93d560fa79
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ from pathlib import Path
|
||||||
template_file = sys.argv[1]
|
template_file = sys.argv[1]
|
||||||
magic_string = sys.argv[2]
|
magic_string = sys.argv[2]
|
||||||
outfile = sys.argv[3]
|
outfile = sys.argv[3]
|
||||||
translations = loads(sys.argv[4]) if len(sys.argv) >= 4 else {}
|
translations = loads(sys.argv[4]) if len(sys.argv) >= 5 else {}
|
||||||
|
|
||||||
if Path(outfile).exists():
|
if Path(outfile).exists():
|
||||||
print(f"{outfile} already exists, aborting")
|
print(f"{outfile} already exists, aborting")
|
||||||
|
|
Loading…
Add table
Reference in a new issue