summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authordrkhsh <me@drkhsh.at>2023-05-15 19:14:52 +0200
committerdrkhsh <me@drkhsh.at>2023-05-15 19:16:12 +0200
commit86c7a84c2397e5bbdcebe2a06bada7ee48f0d480 (patch)
tree5a2d1174a57f978949da8f698fb32d98741ba055 /slstatus.c
parent483169021ba996f59a97b4e3b74cee7e43d6ab6f (diff)
downloadslstatus-86c7a84c2397e5bbdcebe2a06bada7ee48f0d480.tar.gz
Add back version flag to prepare for release
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 */