From c4ae76d4079cc1c9708c746aef6826666576ab37 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 30 Sep 2020 16:33:56 -0400 Subject: Rename unscoop test flag to -! --- Makefile | 2 +- unscoop.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fd56245..f0f7e75 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ ${OBJS}: database.h test: .test .test: unscoop - set -e; for format in ${FORMATS}; do ./unscoop -n -f $$format; done + set -e; for format in ${FORMATS}; do ./unscoop -! -f $$format; done touch .test tags: *.[ch] diff --git a/unscoop.c b/unscoop.c index 6638774..153841c 100644 --- a/unscoop.c +++ b/unscoop.c @@ -335,14 +335,14 @@ int main(int argc, char *argv[]) { const char *context = NULL; const struct Format *format = &Formats[0]; - for (int opt; 0 < (opt = getopt(argc, argv, "DN:c:d:f:nv"));) { + for (int opt; 0 < (opt = getopt(argc, argv, "!DN:c:d:f:v"));) { switch (opt) { + break; case '!': test = true; break; case 'D': dedup = true; break; case 'N': network = optarg; break; case 'c': context = optarg; break; case 'd': path = optarg; break; case 'f': format = formatParse(optarg); - break; case 'n': test = true; break; case 'v': verbose = true; break; default: return EX_USAGE; } -- cgit 1.4.1