about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
 		}