From efde6a170d924cfe5e65fffdff2f77825f8ce477 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 23 Jul 2010 23:13:41 +0200 Subject: print version number when invoked with -v --- i3lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i3lock.c') diff --git a/i3lock.c b/i3lock.c index ba742d1..d1add20 100644 --- a/i3lock.c +++ b/i3lock.c @@ -267,7 +267,7 @@ int main(int argc, char *argv[]) { while ((o = getopt_long(argc, argv, "vnbdi:c:tp:", longopts, &optind)) != -1) { switch (o) { case 'v': - errx(EXIT_SUCCESS, "i3lock © 2010 Michael Stapelberg\n"); + errx(EXIT_SUCCESS, "version " VERSION " © 2010 Michael Stapelberg\n"); case 'n': dont_fork = true; break; -- cgit v1.1