about summary refs log tree commit diff
path: root/mlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'mlist.c')
-rw-r--r--mlist.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mlist.c b/mlist.c
index 689743b..8d28827 100644
--- a/mlist.c
+++ b/mlist.c
@@ -161,7 +161,7 @@ int
 main(int argc, char *argv[])
 {
 	int c;
-	while ((c = getopt(argc, argv, "PRSTDFprstdfNnCcim:")) != -1)
+	while ((c = getopt(argc, argv, "PRSTDFprstdfX:x:NnCcim:")) != -1)
 		switch(c) {
 		case 'P': case 'R': case 'S': case 'T': case 'D': case 'F':
 			flags[(unsigned int)c] = 1;
@@ -169,6 +169,14 @@ main(int argc, char *argv[])
 		case 'p': case 'r': case 's': case 't': case 'd': case 'f':
 			flags[(unsigned int)uc(c)] = -1;
 			break;
+                case 'X':
+			while (*optarg)
+				flags[(unsigned int)*optarg++] = 1;
+			break;
+                case 'x':
+			while (*optarg)
+				flags[(unsigned int)*optarg++] = -1;
+			break;
 		case 'N': Nflag = 1; break;
 		case 'n': Nflag = -1; break;
 		case 'C': Cflag = 1; break;