Scripts: add error message in case of incorrect usage

This commit is contained in:
Pieter Vander Vennet 2024-02-20 16:13:38 +01:00
parent 1528dfaae1
commit 2482ecefc2
2 changed files with 5 additions and 1 deletions

View file

@ -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)