notmuch.c: Shorten version string

We previously output "notmuch version 0.1" as response to notmuch --version.
Shorten this to "notmuch 0.1" as we know that we will receive a version
number when we explicitely ask for it.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2010-04-16 09:06:02 +02:00 committed by Carl Worth
parent b4459b8a4d
commit 43cbbfc278

View file

@ -474,7 +474,7 @@ main (int argc, char *argv[])
return notmuch_help_command (NULL, 0, NULL);
if (STRNCMP_LITERAL (argv[1], "--version") == 0) {
printf ("notmuch version " STRINGIFY(NOTMUCH_VERSION) "\n");
printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n");
return 0;
}