X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/63da70685a6f0232b8f13bfa158772e035586347..1f0796778754d8df0dfab9dd01302e26a397f064:/src/nominatim_db/clicmd/args.py diff --git a/src/nominatim_db/clicmd/args.py b/src/nominatim_db/clicmd/args.py index 857cb55e..488ecd18 100644 --- a/src/nominatim_db/clicmd/args.py +++ b/src/nominatim_db/clicmd/args.py @@ -12,12 +12,14 @@ import argparse import logging from pathlib import Path -from nominatim_core.errors import UsageError -from nominatim_core.config import Configuration -from nominatim_core.typing import Protocol +from ..errors import UsageError +from ..config import Configuration +from ..typing import Protocol + LOG = logging.getLogger() + class Subcommand(Protocol): """ Interface to be implemented by classes implementing a CLI subcommand. @@ -137,6 +139,7 @@ class NominatimArgs: # Arguments to all query functions format: str + list_formats: bool addressdetails: bool extratags: bool namedetails: bool @@ -177,7 +180,6 @@ class NominatimArgs: polygon_geojson: bool group_hierarchy: bool - def osm2pgsql_options(self, default_cache: int, default_threads: int) -> Dict[str, Any]: """ Return the standard osm2pgsql options that can be derived @@ -195,9 +197,8 @@ class NominatimArgs: slim_index=self.config.TABLESPACE_OSM_INDEX, main_data=self.config.TABLESPACE_PLACE_DATA, main_index=self.config.TABLESPACE_PLACE_INDEX - ) - ) - + ) + ) def get_osm_file_list(self) -> Optional[List[Path]]: """ Return the --osm-file argument as a list of Paths or None