X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0608cf1476b80ea7fe1160c78689383f03b4c231..a413aae8a3962be4d623844d867604df68a9a211:/nominatim/cli.py?ds=sidebyside diff --git a/nominatim/cli.py b/nominatim/cli.py index 13658309..6a89a8de 100644 --- a/nominatim/cli.py +++ b/nominatim/cli.py @@ -251,7 +251,7 @@ class AdminServe: return 0 -def get_set_parser(**kwargs: Any) -> CommandlineParser: +def get_set_parser() -> CommandlineParser: """\ Initializes the parser and adds various subcommands for nominatim cli. @@ -287,6 +287,4 @@ def nominatim(**kwargs: Any) -> int: Command-line tools for importing, updating, administrating and querying the Nominatim database. """ - parser = get_set_parser(**kwargs) - - return parser.run(**kwargs) + return get_set_parser().run(**kwargs)