From 85bc89701507a525c54f2c38dfbad852802c2fc1 Mon Sep 17 00:00:00 2001 From: Richard M Kreuter Date: Tue, 19 Jan 2016 21:19:16 -0500 Subject: [PATCH] Added all of mhshow's documented switches to show's handling, on the notion that nmh's pieces should know about each other. --- uip/show.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/uip/show.c b/uip/show.c index f8910785..5b815f4e 100644 --- a/uip/show.c +++ b/uip/show.c @@ -34,6 +34,15 @@ */ \ 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]); -- 2.56.0