From: Dan Harkless Date: Thu, 13 May 1999 01:22:54 +0000 (+0000) Subject: Added -library switch so it can parse user aliases like post does. X-Git-Tag: nmh-1_0~189 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=2b5c5779f2eb63019446a69c3e2c6f871e71c3df Added -library switch so it can parse user aliases like post does. From Ruud de Rooij . --- diff --git a/uip/spost.c b/uip/spost.c index 7d65ead..58d4ae3 100644 --- a/uip/spost.c +++ b/uip/spost.c @@ -311,8 +311,15 @@ main (int argc, char **argv) continue; case LIBSW: + if (!(cp = *argp++) || *cp == '-') + adios (NULL, "missing argument to %s", argp[-2]); + /* create a minimal context */ + if (context_foil (cp) == -1) + done(1); + continue; + case ANNOSW: - /* -library & -idanno switch ignored */ + /* -idanno switch ignored */ if (!(cp = *argp++) || *cp == '-') adios (NULL, "missing argument to %s", argp[-2]); continue;