fix arg count
This commit is contained in:
parent
f027d91bb1
commit
28a55e83d9
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ from pathlib import Path
|
|||
template_file = sys.argv[1]
|
||||
magic_string = sys.argv[2]
|
||||
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():
|
||||
print(f"{outfile} already exists, aborting")
|
||||
|
|
Loading…
Add table
Reference in a new issue