summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-09-14 17:26:37 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-09-14 17:26:37 (GMT)
commit1a50cbd7375f1c48c7d78febc109b88db19f75b4 (patch)
tree538eefffa695706327e90eb68cbf2a109df83a6a
parent29a7f62218b9c24e804cff4d524b11819cb57f93 (diff)
downloadhdf5-1a50cbd7375f1c48c7d78febc109b88db19f75b4.zip
hdf5-1a50cbd7375f1c48c7d78febc109b88db19f75b4.tar.gz
hdf5-1a50cbd7375f1c48c7d78febc109b88db19f75b4.tar.bz2
[svn-r2549] Added usage message if the user doesn't specify a filename (i.e., no
command line arguments are given).
-rw-r--r--tools/h5debug.c7
1 files changed, 6 insertions, 1 deletions
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 <H5FDfamily.h>
-
#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.
*/