From 21740f91adfdae92aa56e7ab4a36e08077a4973e Mon Sep 17 00:00:00 2001 From: drkhsh Date: Mon, 15 May 2023 19:14:52 +0200 Subject: Add back version flag to prepare for release --- slstatus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'slstatus.c') diff --git a/slstatus.c b/slstatus.c index cb54f29..fd31313 100644 --- a/slstatus.c +++ b/slstatus.c @@ -41,7 +41,7 @@ difftimespec(struct timespec *res, struct timespec *a, struct timespec *b) static void usage(void) { - die("usage: %s [-s] [-1]", argv0); + die("usage: %s [-v] [-s] [-1]", argv0); } int @@ -56,6 +56,8 @@ main(int argc, char *argv[]) sflag = 0; ARGBEGIN { + case 'v': + die("slstatus-"VERSION); case '1': done = 1; /* FALLTHROUGH */ -- cgit v1.2.3