]> diplodocus.org Git - nmh/commitdiff
Added all of mhshow's documented switches to show's handling, on the
authorRichard M Kreuter <kreuter@progn.net>
Wed, 20 Jan 2016 02:19:16 +0000 (21:19 -0500)
committerDavid Levine <levinedl@acm.org>
Wed, 20 Jan 2016 02:19:16 +0000 (21:19 -0500)
notion that nmh's pieces should know about each other.

uip/show.c

index f891078..5b815f4 100644 (file)
      */                                \
     X("concat", -6, CONCATSW) \
     X("noconcat", -8, NCONCATSW) \
+    /*                         \
+     * switches for mhshow     \
+     */                                \
+    X("part number", 0, PARTSW) \
+    X("type content", 0, TYPESW) \
+    X("prefer content", 0, PREFERSW) \
+    X("markform file", 0, MARKFORMSW) \
+    X("rcache policy", 0, RCACHESW) \
+    X("wcache policy", 0, WCACHESW) \
 
 #define X(sw, minchars, id) id,
 DEFINE_SWITCH_ENUM(SHOW);
@@ -141,6 +150,12 @@ usage:
                case LENSW:
                case WIDTHSW:
                case FMTPROCSW:
+               case PARTSW:
+               case TYPESW:
+               case PREFERSW:
+               case MARKFORMSW:
+               case RCACHESW:
+               case WCACHESW:
                    app_msgarg(&vec, --cp);
                    if (!(cp = *argp++) || *cp == '-')
                        adios (NULL, "missing argument to %s", argp[-2]);