mirror of
https://github.com/mintycube/slock.git
synced 2024-10-22 14:05:51 +02:00
write version to stdout like the man page says
ref. https://git.suckless.org/slock/commit/e8bca65d629a4faa89439c9f0e599efb5a259573.html
This commit is contained in:
parent
67f3da2d6a
commit
6020a79998
2
slock.c
2
slock.c
@ -653,7 +653,7 @@ main(int argc, char **argv) {
|
|||||||
#endif // MESSAGE_PATCH | COLOR_MESSAGE_PATCH
|
#endif // MESSAGE_PATCH | COLOR_MESSAGE_PATCH
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'v':
|
case 'v':
|
||||||
fprintf(stderr, "slock-"VERSION"\n");
|
puts("slock-"VERSION);
|
||||||
return 0;
|
return 0;
|
||||||
#if MESSAGE_PATCH || COLOR_MESSAGE_PATCH
|
#if MESSAGE_PATCH || COLOR_MESSAGE_PATCH
|
||||||
case 'm':
|
case 'm':
|
||||||
|
Loading…
Reference in New Issue
Block a user