From: Sean Eric Fagan Date: Sun, 24 Jan 1993 19:07:11 +0000 (+0000) Subject: Add a usage statement if an unrecognized option is given. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=804c13bdb1b714b7e2771e793d331dd0615de99f;p=binutils-gdb.git Add a usage statement if an unrecognized option is given. --- 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++; }