mlist: add -X/-x ala mflag

pull/1/merge
Christian Neukirchen 8 years ago
parent d8edb56851
commit 97ff31e580

@ -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;

Loading…
Cancel
Save