X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6fd2bf57267d5399994a4a4c4555c5197d50ce82..2ffe7ca30b85d542d02f74c39785319bcb6ad005:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index cc3c8727..a7283bf8 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -222,13 +222,12 @@ main (int argc, char **argv) adios (NULL, "-%s unknown", cp); case HELPSW: - snprintf (buf, sizeof(buf), - "%s [switches] [address info sender]", invo_name); + snprintf (buf, sizeof(buf), "%s [switches]", invo_name); print_help (buf, switches, 0); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case ADDRSW: if (!(addr = *argp++))/* allow -xyz arguments */ @@ -284,20 +283,8 @@ main (int argc, char **argv) debug++; continue; } - } - - switch (argp - (argv + 1)) { - case 1: - addr = cp; - break; - - case 2: - info = cp; - break; - - case 3: - sender = cp; - break; + } else { + adios (NULL, "only switch arguments are supported"); } }