about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-09-30 16:33:56 -0400
committerJune McEnroe <june@causal.agency>2020-09-30 16:33:56 -0400
commitc4ae76d4079cc1c9708c746aef6826666576ab37 (patch)
tree698f19fa2db40bbebfe9e6bc5a2cc5e0c6cbdad3
parentUndocument unscoop -n (diff)
downloadlitterbox-c4ae76d4079cc1c9708c746aef6826666576ab37.tar.gz
litterbox-c4ae76d4079cc1c9708c746aef6826666576ab37.zip
Rename unscoop test flag to -!
Diffstat (limited to '')
-rw-r--r--Makefile2
-rw-r--r--unscoop.c4
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;
 		}