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

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();