diff options
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/main.c b/sway/main.c index 3591e7ff..01c19074 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -78,8 +78,8 @@ int main(int argc, char **argv) { | |||
78 | debug = 1; | 78 | debug = 1; |
79 | break; | 79 | break; |
80 | case 'v': // version | 80 | case 'v': // version |
81 | #ifdef SWAY_GIT_VERSION | 81 | #if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE |
82 | fprintf(stdout, "sway build %s\n", SWAY_GIT_VERSION); | 82 | fprintf(stdout, "sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH); |
83 | #else | 83 | #else |
84 | fprintf(stdout, "version not detected\n"); | 84 | fprintf(stdout, "version not detected\n"); |
85 | #endif | 85 | #endif |