ref: 799342c46e5f2928d77701e1b2f787ed729a1cce
parent: dd686dbd3509c79eecd46458dd3a5f367ceee367
author: aabacchus <[email protected]>
date: Sun May 22 18:50:21 EDT 2022
mkfn: print usage to stderr and return 1 on bad options so that if an incorrect option is given in a pipeline, the error message can be seen.
--- a/mkfn.c
+++ b/mkfn.c
@@ -232,8 +232,8 @@
mkfn_warn = 1;
break;
default:
- printf("%s", usage);
- return 0;
+ fprintf(stderr, "%s", usage);
+ return 1;
}
}
trfn_init();