From b2cde1725132e0f0f3cdd2019745d130235282c3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 27 Nov 2013 18:18:38 -0800 Subject: Add -version option to print program version Signed-off-by: Alan Coopersmith --- xev.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xev.c') 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 - */ -- cgit v1.2.3