forked from MapComplete/MapComplete
		
	Scripts: add error message in case of incorrect usage
This commit is contained in:
		
							parent
							
								
									1528dfaae1
								
							
						
					
					
						commit
						2482ecefc2
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -451,6 +451,9 @@ export default class GenerateImageAnalysis extends Script { | |||
|         args = args.filter((a) => a !== "--cached") | ||||
|         const datapath = args[1] ?? "../../git/MapComplete-data/ImageLicenseInfo" | ||||
|         const imageBackupPath = args[0] | ||||
|         if(imageBackupPath === "" || imageBackupPath === undefined){ | ||||
|             throw "No imageBackup path specified" | ||||
|         } | ||||
|         await this.downloadData(datapath, cached) | ||||
| 
 | ||||
|         // await this.downloadViews(datapath)
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue