summaryrefslogtreecommitdiff
path: root/xkbwatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'xkbwatch.c')
-rw-r--r--xkbwatch.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/xkbwatch.c b/xkbwatch.c
index 23961c5..e01de04 100644
--- a/xkbwatch.c
+++ b/xkbwatch.c
@@ -79,6 +79,13 @@ main(int argc, char *argv[])
NULL
};
+ for (i = 1; i < argc; i++) {
+ if (strcmp(argv[i], "-version") == 0) {
+ printf("xkbwatch (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION);
+ exit(0);
+ }
+ }
+
uSetErrorFile(NullString);
toplevel = XtOpenApplication(&app_con, "XkbWatch",
options, XtNumber(options), &argc, argv,