From 804c13bdb1b714b7e2771e793d331dd0615de99f Mon Sep 17 00:00:00 2001 From: Sean Eric Fagan Date: Sun, 24 Jan 1993 19:07:11 +0000 Subject: [PATCH] Add a usage statement if an unrecognized option is given. --- gprof/gprof.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gprof/gprof.c b/gprof/gprof.c index 6994d8f5cb6..169e2ec5abb 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -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++; } -- 2.30.2