summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
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 */