diff options
author | Sean Eric Fagan <sef@cygnus> | 1993-01-24 19:07:11 +0000 |
---|---|---|
committer | Sean Eric Fagan <sef@cygnus> | 1993-01-24 19:07:11 +0000 |
commit | 804c13bdb1b714b7e2771e793d331dd0615de99f (patch) | |
tree | 3cc96e586ffdeb6db83cbf45ae90873a4d8c8649 | |
parent | fab5d4e319fc376373a47a492e67044c4017b31f (diff) | |
download | gdb-804c13bdb1b714b7e2771e793d331dd0615de99f.zip gdb-804c13bdb1b714b7e2771e793d331dd0615de99f.tar.gz gdb-804c13bdb1b714b7e2771e793d331dd0615de99f.tar.bz2 |
Add a usage statement if an unrecognized option is given.
-rw-r--r-- | gprof/gprof.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c index 6994d8f..169e2ec 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++; } |