Added -library switch so it can parse user aliases like post does.
authorDan Harkless <dan@harkless.org>
Thu, 13 May 1999 01:22:54 +0000 (01:22 +0000)
committerDan Harkless <dan@harkless.org>
Thu, 13 May 1999 01:22:54 +0000 (01:22 +0000)
From Ruud de Rooij <r.c.m.derooij@twi.tudelft.nl>.

uip/spost.c

index 7d65ead..58d4ae3 100644 (file)
@@ -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;