spost: Read profile and context now. Removed -library switch.
[mmh] / uip / send.c
index bcbd54d..245bf3c 100644 (file)
@@ -22,7 +22,6 @@
 #include <time.h>
 
 int debugsw = 0;  /* global */
-int verbsw  = 0;
 char *altmsg   = NULL;
 char *annotext = NULL;
 char *distfile = NULL;
@@ -61,13 +60,9 @@ static struct swit switches[] = {
        { "verbose", 0 },
 #define NVERBSW  3
        { "noverbose", 2 },
-#define WATCSW  4
-       { "watch", 0 },
-#define NWATCSW  5
-       { "nowatch", 2 },
-#define VERSIONSW  6
+#define VERSIONSW  4
        { "Version", 0 },
-#define HELPSW  7
+#define HELPSW  5
        { "help", 0 },
        { NULL, 0 }
 };
@@ -97,9 +92,6 @@ main(int argc, char **argv)
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
-       vec[vecp++] = "-library";
-       vec[vecp++] = getcpy(toabsdir("+"));
-
        while ((cp = *argp++)) {
                if (*cp == '-') {
                        switch (smatch(++cp, switches)) {
@@ -119,19 +111,11 @@ main(int argc, char **argv)
                                print_version(invo_name);
                                done(1);
 
+                       case DEBUGSW:
+                               debugsw++;
+                               /* fall */
                        case VERBSW:
-                               verbsw++;
-                               vec[vecp++] = --cp;
-                               continue;
                        case NVERBSW:
-                               verbsw = 0;
-                               vec[vecp++] = --cp;
-                               continue;
-
-                       case DEBUGSW:
-                               debugsw++;  /* fall */
-                       case WATCSW:
-                       case NWATCSW:
                                vec[vecp++] = --cp;
                                continue;