summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 8322cbc..069a522 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -3377,6 +3377,12 @@ parse_command_line(int argc, const char *argv[])
const char *outfname=NULL;
bin_form = -1;
+ /* no arguments */
+ if (argc == 1) {
+ usage(progname);
+ leave(EXIT_FAILURE);
+ }
+
/* this will be plenty big enough to hold the info */
hand = calloc((size_t)argc, sizeof(struct handler_t));