X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ed6fda696864be2b0970ec1eae327f48c00f7fd1..04644102f2721d6fa6fbb86af8fb7ad8267add56:/nominatim/cli.py?ds=sidebyside 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):