Require at least 2 chars for `no' variants of switches.
[mmh] / uip / mhshow.c
index fa7f256..e1bcf8f 100644 (file)
@@ -20,7 +20,7 @@ static struct swit switches[] = {
 #define VERBSW  0
        { "verbose", 0 },
 #define NVERBSW  1
-       { "noverbose", 0 },
+       { "noverbose", 2 },
 #define FILESW  2  /* interface from show */
        { "file file", 0 },
 #define FORMSW  3
@@ -30,7 +30,7 @@ static struct swit switches[] = {
 #define TYPESW  5
        { "type content", 0 },
 #define VERSIONSW  6
-       { "version", 0 },
+       { "Version", 0 },
 #define HELPSW  7
        { "help", 0 },
 #define DEBUGSW  8
@@ -156,7 +156,7 @@ main(int argc, char **argv)
 
                        case FILESW:
                                if (mode != SHOW) {
-                                       adios(NULL, "Either call mhshow as `%s' or use -file", invo_name);
+                                       adios(NULL, "Either call show as `%s' or use -file", invo_name);
                                }
 
                                if (!(cp = *argp++) || (*cp == '-' && cp[1]))
@@ -191,7 +191,7 @@ main(int argc, char **argv)
                        else
                                folder = getcpy(expandfol(cp));
                } else if (mode != SHOW) {
-                       adios(NULL, "Either call mhshow as `%s' or give message arguments", invo_name);
+                       adios(NULL, "Either call show as `%s' or give message arguments", invo_name);
                } else {
                        app_msgarg(&msgs, cp);
                }