diff options
author | Aaron Marcher <info@nulltime.net> | 2016-09-18 17:03:53 +0200 |
---|---|---|
committer | Aaron Marcher (drkhsh) <info@nulltime.net> | 2016-09-18 17:03:53 +0200 |
commit | 14749b6c878f231a1120fc750d38f0c4383090a1 (patch) | |
tree | b654a2892ae3edfa0126c2fb4c8ba2312b4a3abe /slstatus.c | |
parent | dcc0cddee4457d88528b75bab2d6705ff06770d9 (diff) | |
download | slstatus-14749b6c878f231a1120fc750d38f0c4383090a1.tar.gz |
added -v command line option
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -592,7 +592,7 @@ sighandler(const int signo) static void usage(void) { - fprintf(stderr, "usage: %s [-dho]\n", argv0); + fprintf(stderr, "usage: %s [-dhov]\n", argv0); exit(1); } @@ -612,6 +612,9 @@ main(int argc, char *argv[]) case 'o': oflag = 1; break; + case 'v': + printf("%s version %s (c) 2016 slstatus engineers\n", argv0, VERSION); + return 0; default: usage(); } ARGEND |