fix arg count
This commit is contained in:
		
							parent
							
								
									ae46ef757c
								
							
						
					
					
						commit
						0d3f8c0376
					
				
					 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