summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authordrkhsh <me@drkhsh.at>2023-05-15 19:14:52 +0200
committerRafael Marçalo <raroma09@gmail.com>2023-05-16 02:48:17 +0100
commit21740f91adfdae92aa56e7ab4a36e08077a4973e (patch)
tree5a2d1174a57f978949da8f698fb32d98741ba055 /slstatus.c
parentf7410b38e09e445f161f9a4fd2c1877b8c37c529 (diff)
Add back version flag to prepare for releaseHEADmaster
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c4
1 files changed, 3 insertions, 1 deletions
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 */