diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-27 19:14:50 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-27 19:14:50 -0500 |
| commit | 0a1b08e58e1ef9a5d60295deb4bf158562718909 (patch) | |
| tree | 4775128dfa048e1bbb07aca75f935d518b4c2dda /src/opts.c | |
| parent | 8aec307634ac63cf88e77df0e48fde1de0649b03 (diff) | |
| download | alftools-0a1b08e58e1ef9a5d60295deb4bf158562718909.tar.gz | |
Add -f (fix EOF junk) option to unalf.
Diffstat (limited to 'src/opts.c')
| -rw-r--r-- | src/opts.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |
