write version to stdout like the man page says

This commit is contained in:
Hiltjo Posthuma 2023-10-06 11:50:11 +02:00
parent ca6f30f621
commit e8bca65d62
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ main(int argc, char **argv) {
ARGBEGIN {
case 'v':
fprintf(stderr, "slock-"VERSION"\n");
puts("slock-"VERSION);
return 0;
default:
usage();