Merge pull request #450 from devkev/full_version

Fix version reporting in -h and -v.
This commit is contained in:
Orestis Floros 2021-08-28 10:02:35 +02:00 committed by GitHub
commit cabb01fd46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -510,13 +510,13 @@ int main(int argc, char *argv[]) {
configfile = optarg;
break;
case 'h':
printf("i3status " VERSION " © 2008 Michael Stapelberg and contributors\n"
printf("i3status " I3STATUS_VERSION " © 2008 Michael Stapelberg and contributors\n"
"Syntax: %s [-c <configfile>] [-h] [-v]\n",
argv[0]);
return 0;
break;
case 'v':
printf("i3status " VERSION " © 2008 Michael Stapelberg and contributors\n"
printf("i3status " I3STATUS_VERSION " © 2008 Michael Stapelberg and contributors\n"
#if HAS_PULSEAUDIO
"Built with pulseaudio support\n"
#else