From 0a1b08e58e1ef9a5d60295deb4bf158562718909 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 27 Nov 2025 19:14:50 -0500 Subject: Add -f (fix EOF junk) option to unalf. --- src/opts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/opts.c') diff --git a/src/opts.c b/src/opts.c index 58a13c2..416163c 100644 --- a/src/opts.c +++ b/src/opts.c @@ -1,6 +1,6 @@ #include "unalf.h" -#define OPTIONS "aeklLopqtvVd:x:" +#define OPTIONS "aefklLopqtvVd:x:" /* uncomment to test exclude/include glob lists */ // #define DEBUG_GLOBS @@ -37,6 +37,7 @@ void parse_opts(int argc, char * const *argv) { case 'a': opts.txtconv++; break; case 'e': opts.listonly = opts.testonly = 0; break; case 'k': opts.keepdot++; break; + case 'f': opts.fixjunk++; opts.testonly = 1; opts.listonly = 0; opts.quiet = 1; break; case 'l': opts.listonly++; opts.testonly = 0; break; case 'L': opts.lowercase++; break; case 'o': opts.overwrite++; break; -- cgit v1.2.3