From 1a50cbd7375f1c48c7d78febc109b88db19f75b4 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 14 Sep 2000 12:26:37 -0500 Subject: [svn-r2549] Added usage message if the user doesn't specify a filename (i.e., no command line arguments are given). --- tools/h5debug.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/h5debug.c b/tools/h5debug.c index c2364a1..ff6b5fe 100644 --- a/tools/h5debug.c +++ b/tools/h5debug.c @@ -27,7 +27,6 @@ /* File drivers */ #include - #define INDENT 3 #define VCOL 50 @@ -59,6 +58,12 @@ main(int argc, char *argv[]) intn i, ndims; herr_t status = SUCCEED; + if (argc == 1) { + fprintf(stderr, + "Usage: %s filename [signature addr [extra]]\n", argv[0]); + HDexit(1); + } + /* * Open the file and get the file descriptor. */ -- cgit v0.12