put in standard illegal option message
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 15 Nov 1987 03:57:40 +0000 (19:57 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 15 Nov 1987 03:57:40 +0000 (19:57 -0800)
SCCS-vsn: usr.bin/man/man.c 5.9

usr/src/usr.bin/man/man.c

index 1050116..5600d2e 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)man.c      5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)man.c      5.9 (Berkeley) %G%";
 #endif not lint
 
 #include <sys/param.h>
 #endif not lint
 
 #include <sys/param.h>
@@ -117,6 +117,7 @@ main(argc, argv)
                        break;
                case '?':
                default:
                        break;
                case '?':
                default:
+                       fprintf(stderr, "man: illegal option -- %c\n", (*argv)[1]);
                        usage();
                }
        if (!argc)
                        usage();
                }
        if (!argc)