added -v command line option
This commit is contained in:
parent
dcc0cddee4
commit
14749b6c87
|
@ -16,6 +16,9 @@ displays usage
|
||||||
.TP
|
.TP
|
||||||
.B \-o
|
.B \-o
|
||||||
output to console instead of WM_NAME
|
output to console instead of WM_NAME
|
||||||
|
.TP
|
||||||
|
.B \-v
|
||||||
|
display version and copyright details
|
||||||
.SH CUSTOMIZATION
|
.SH CUSTOMIZATION
|
||||||
.B slstatus
|
.B slstatus
|
||||||
can be customized by creating a custom config.h and (re)compiling the source
|
can be customized by creating a custom config.h and (re)compiling the source
|
||||||
|
|
|
@ -592,7 +592,7 @@ sighandler(const int signo)
|
||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "usage: %s [-dho]\n", argv0);
|
fprintf(stderr, "usage: %s [-dhov]\n", argv0);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -612,6 +612,9 @@ main(int argc, char *argv[])
|
||||||
case 'o':
|
case 'o':
|
||||||
oflag = 1;
|
oflag = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'v':
|
||||||
|
printf("%s version %s (c) 2016 slstatus engineers\n", argv0, VERSION);
|
||||||
|
return 0;
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
} ARGEND
|
} ARGEND
|
||||||
|
|
Loading…
Reference in New Issue