]> git.openstreetmap.org Git - nominatim.git/commitdiff
Updated check to see if osm_file is set
authorRobbe Haesendonck <googleit@inuits.eu>
Wed, 27 Sep 2023 08:50:40 +0000 (10:50 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 7 Dec 2023 08:04:33 +0000 (09:04 +0100)
nominatim/clicmd/setup.py

index 754f3b2f9d4f3b28e19a21ce6194c643490edcb3..16c152a2a9cc89349453f1506ddbc119e2fae5ae 100644 (file)
@@ -80,8 +80,7 @@ class SetupAll:
 
         country_info.setup_country_config(args.config)
 
-        # Check if osm-file or continue_at is set, if both are set, or none are set, throw an error
-        if args.osm_file is None and args.continue_at is None:
+        if args.osm_file is None and args.continue_at is None and not args.prepare_database:
             raise UsageError("No input files (use --osm-file).")
 
         if args.osm_file is not None and args.continue_at not in ('import-from-file', None):