commit 084569ee2fa7a92747ac6a29c79036bfecaffb8a
parent db2c03b9dda742d584185290a66913910b223bd2
Author: Christos Margiolis <christos@margiolis.net>
Date: Tue, 25 May 2021 18:44:18 +0300
fixed -v option
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nfy.c b/nfy.c
@@ -64,8 +64,8 @@ main(int argc, char *argv[])
while ((ch = getopt(argc, argv, "v")) != -1) {
switch (ch) {
case 'v':
- puts("nfy-"VERSION);
- exit(0);
+ fprintf(stderr, "%s-"VERSION"\n", argv0);
+ exit(1);
case '?':
default:
usage();