changeset 378:dcf35885d50d

Make the mlmmj-list switches more compatible with the rest
author mmj
date Thu, 18 Nov 2004 22:58:27 +1100
parents efc0507175c5
children 136e5bc27f7a
files src/mlmmj-list.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/mlmmj-list.c	Thu Nov 18 00:03:56 2004 +1100
+++ b/src/mlmmj-list.c	Thu Nov 18 22:58:27 2004 +1100
@@ -43,8 +43,8 @@
 	       " -h: This help\n"
 	       " -L: Full path to list directory\n"
 	       " -d: Print for digesters list\n"
-	       " -N: Print for nomail version of list\n"
-	       " -n: Print subscriber count\n"
+	       " -n: Print for nomail version of list\n"
+	       " -c: Print subscriber count\n"
 	       " -V: Print version\n", prg);
 	exit(EXIT_SUCCESS);
 }
@@ -60,8 +60,11 @@
 	size_t len;
 	enum subtype typesub = SUB_NORMAL;
 
-	while ((opt = getopt(argc, argv, "dhnNVL:")) != -1) {
+	while ((opt = getopt(argc, argv, "cdhnVL:")) != -1) {
 		switch(opt) {
+		case 'c':
+			docount = 1;
+			break;
 		case 'd':
 			typesub = SUB_DIGEST;
 			break;
@@ -72,9 +75,6 @@
 			listdir = optarg;
 			break;
 		case 'n':
-			docount = 1;
-			break;
-		case 'N':
 			typesub = SUB_NOMAIL;
 			break;
 		case 'V':