X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2ae13c55837ab13396ad87119c00536f4c078d73..ae6b029543f7cacd9a491ae5965981a610ca424e:/nominatim/cli.py diff --git a/nominatim/cli.py b/nominatim/cli.py index 01eb6119..f911023b 100644 --- a/nominatim/cli.py +++ b/nominatim/cli.py @@ -60,9 +60,9 @@ class CommandlineParser: def nominatim_version_text(): """ Program name and version number as string """ - text = 'Nominatim version %s.%s.%s.%s' % version.NOMINATIM_VERSION + text = f'Nominatim version {version.version_str()}' if version.GIT_COMMIT_HASH is not None: - text += ' (%s)' % version.GIT_COMMIT_HASH + text += f' ({version.GIT_COMMIT_HASH})' return text def add_subcommand(self, name, cmd):