diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c index afbdab33..0880cb8c 100644 --- a/sway/main.c +++ b/sway/main.c @@ -78,7 +78,11 @@ int main(int argc, char **argv) { debug = 1; break; case 'v': // version - // todo +#ifdef SWAY_GIT_VERSION + fprintf(stdout, "sway build %s\n", SWAY_GIT_VERSION); +#else + fprintf(stdout, "version not detected\n"); +#endif exit(0); break; case 'V': // verbose |