From 3bebe0e894828d80183926d4fc19fc01cd3c274e Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Thu, 12 Apr 2012 21:07:57 -0400 Subject: [PATCH] Support -fmtproc -nofmtproc in show. --- uip/show.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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]); -- 1.7.10.4