summaryrefslogtreecommitdiff
path: root/xev.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-27 18:18:38 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-27 18:18:38 -0800
commitb2cde1725132e0f0f3cdd2019745d130235282c3 (patch)
treea666c5941326c5362ef43fe15cff76347a405614 /xev.c
parent5eb60b2f71fb673bb6bb34a956c2f3114a59e152 (diff)
Add -version option to print program version
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xev.c')
-rw-r--r--xev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xev.c b/xev.c
index 9afec4a..45c283f 100644
--- a/xev.c
+++ b/xev.c
@@ -1086,6 +1086,9 @@ main (int argc, char **argv)
usage (NULL);
event_mask_specified = True;
continue;
+ case 'v':
+ puts(PACKAGE_STRING);
+ exit(0);
default:
goto unrecognized;
} /* end switch on - */