diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2013-06-30 23:12:38 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2013-06-30 23:12:38 (GMT) |
commit | 080a7ebb3760b9bdbe62bf574bf26f5827ef02ea (patch) | |
tree | 5c88c6adca800e941ec2c5b9ec428fe5537c863c /test | |
parent | 297ed85ea17ae27044e55bfdf71483c9bcddac63 (diff) | |
download | hdf5-080a7ebb3760b9bdbe62bf574bf26f5827ef02ea.zip hdf5-080a7ebb3760b9bdbe62bf574bf26f5827ef02ea.tar.gz hdf5-080a7ebb3760b9bdbe62bf574bf26f5827ef02ea.tar.bz2 |
[svn-r23851] Bug fix: after printing usage for -h option, it should have ended the program.
Solution: added exit(0) after usage(). This is not a good fix but will work
for now.
Test: jam.
Diffstat (limited to 'test')
-rw-r--r-- | test/use_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/use_common.c b/test/use_common.c index 380ef6c..9c786f4 100644 --- a/test/use_common.c +++ b/test/use_common.c @@ -50,6 +50,7 @@ parse_option(int argc, char * const argv[]) switch (c) { case 'h': usage(progname_g); + exit(0); break; case 'f': /* usecase data file name */ UC_opts.filename = optarg; |