Add a usage statement if an unrecognized option is given.
authorSean Eric Fagan <sef@cygnus>
Sun, 24 Jan 1993 19:07:11 +0000 (19:07 +0000)
committerSean Eric Fagan <sef@cygnus>
Sun, 24 Jan 1993 19:07:11 +0000 (19:07 +0000)
gprof/gprof.c

index 6994d8f5cb6f4585248b8ce5c00fc1fd219ff9a5..169e2ec5abb0eb8dcac2d2dcd7ea9506ba04b4c1 100644 (file)
@@ -111,6 +111,13 @@ main(argc, argv)
        case 'z':
            zflag = TRUE;
            break;
+       default:
+           fprintf (stderr, "usage:  gproff [-a] [-b] [-c] [-d[num]] \
+[-E function-name] [-e function-name] \
+[-F function-name] [-f function-name] \
+[-k from to] [-s] [-T] [-z] [image-file] \
+[profile file]\n");
+           exit (1);
        }
        argv++;
     }