summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/h5diff/h5diff.c2
-rwxr-xr-xtools/h5diff/testh5diff.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/h5diff/h5diff.c b/tools/h5diff/h5diff.c
index 5b12ec7..f5d89de 100644
--- a/tools/h5diff/h5diff.c
+++ b/tools/h5diff/h5diff.c
@@ -96,7 +96,7 @@ void usage( const char *progname )
FILE2_NAME File name of the second HDF5 file\n"
fprintf(stderr,
- "h5diff [OBJ1_NAME] [OBJ2_NAME] [-h] [-l] [-r] [-d] [-n count] [-d delta] [-p relativet] FILE1_NAME FILE2_NAME\n%s",
+ "h5diff [OBJ1_NAME] [OBJ2_NAME] [-h] [-l] [-r] [-d] [-n count] [-d delta] [-p relative] FILE1_NAME FILE2_NAME\n%s",
USAGE);
fprintf(stderr,"\n");
fprintf(stderr,"Items in [ ] are optional \n");
diff --git a/tools/h5diff/testh5diff.sh b/tools/h5diff/testh5diff.sh
index e597979..579455d 100755
--- a/tools/h5diff/testh5diff.sh
+++ b/tools/h5diff/testh5diff.sh
@@ -93,6 +93,8 @@ TOOLTEST() {
# test1: Check if the command line number of arguments is less than 3
TOOLTEST h5diff_1.txt h5diff_test1.h5
+# test2: Check for invalid options
+TOOLTEST h5diff_2.txt -x h5diff_test1.h5 h5diff_test2.h5
if test $nerrors -eq 0 ; then
echo "All $H5DIFF tests passed."