From: Ken Hornstein Date: Fri, 13 Apr 2012 01:07:57 +0000 (-0400) Subject: Support -fmtproc -nofmtproc in show. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=3bebe0e894828d80183926d4fc19fc01cd3c274e;p=mmh Support -fmtproc -nofmtproc in show. --- diff --git a/uip/show.c b/uip/show.c index 60f1e62..8e581e7 100644 --- a/uip/show.c +++ b/uip/show.c @@ -40,9 +40,13 @@ static struct swit switches[] = { { "draft", 0 }, #define FILESW 13 { "file file", -4 }, /* interface from showfile */ -#define VERSIONSW 14 +#define FMTPROCSW 14 + { "fmtproc program", 0 }, +#define NFMTPROCSW 15 + { "nofmtproc", 0 }, +#define VERSIONSW 16 { "version", 0 }, -#define HELPSW 15 +#define HELPSW 17 { "help", 0 }, { NULL, 0 } }; @@ -92,6 +96,7 @@ main (int argc, char **argv) done (1); case UNKWNSW: case NPROGSW: + case NFMTPROCSW: vec[vecp++] = --cp; continue; @@ -142,6 +147,7 @@ usage: case PROGSW: case LENSW: case WIDTHSW: + case FMTPROCSW: vec[vecp++] = --cp; if (!(cp = *argp++) || *cp == '-') adios (NULL, "missing argument to %s", argp[-2]);