summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5diff/h5diff_common.c13
-rw-r--r--tools/testfiles/h5diff_10.txt1
-rw-r--r--tools/testfiles/h5diff_600.txt1
-rw-r--r--tools/testfiles/h5diff_601.txt1
-rw-r--r--tools/testfiles/h5diff_602.txt1
-rw-r--r--tools/testfiles/h5diff_603.txt1
-rw-r--r--tools/testfiles/h5diff_604.txt1
-rw-r--r--tools/testfiles/h5diff_605.txt1
-rw-r--r--tools/testfiles/h5diff_606.txt1
-rw-r--r--tools/testfiles/h5diff_611.txt1
-rw-r--r--tools/testfiles/h5diff_612.txt1
-rw-r--r--tools/testfiles/h5diff_613.txt1
-rw-r--r--tools/testfiles/h5diff_614.txt1
-rw-r--r--tools/testfiles/h5diff_615.txt1
-rw-r--r--tools/testfiles/h5diff_620.txt1
-rw-r--r--tools/testfiles/h5diff_621.txt1
-rw-r--r--tools/testfiles/h5diff_622.txt1
-rw-r--r--tools/testfiles/h5diff_623.txt1
-rw-r--r--tools/testfiles/h5diff_624.txt1
19 files changed, 31 insertions, 0 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c
index bee2c86..a5b9328 100644
--- a/tools/h5diff/h5diff_common.c
+++ b/tools/h5diff/h5diff_common.c
@@ -17,6 +17,8 @@
#include <string.h>
#include "h5diff.h"
#include "h5diff_common.h"
+#include "h5tools_utils.h"
+
/*-------------------------------------------------------------------------
* Function: parse_input
@@ -45,6 +47,13 @@ void parse_input(int argc,
*-------------------------------------------------------------------------
*/
+ if ( (strcmp("-V",argv[1])==0) )
+ {
+ print_version("h5diff");
+ h5diff_exit(EXIT_SUCCESS);
+
+ }
+
if ( argc==2 && (strcmp("-h",argv[1])==0) )
usage();
@@ -81,6 +90,9 @@ void parse_input(int argc,
case 'h':
usage();
break;
+ case 'V':
+ print_version("h5diff");
+ h5diff_exit(EXIT_SUCCESS);
case 'v':
options->m_verbose = 1;
break;
@@ -298,6 +310,7 @@ void usage(void)
printf("[obj2] Name of an HDF5 object, in absolute path\n");
printf("[OPTIONS] are:\n");
printf("[-h] Print out this information\n");
+ printf("[-V] Print HDF5 library version number and exit\n");
printf("[-r] Report mode. Print differences\n");
printf("[-v] Verbose mode. Print differences, list of objects, warnings\n");
printf("[-q] Quiet mode. Do not do output\n");
diff --git a/tools/testfiles/h5diff_10.txt b/tools/testfiles/h5diff_10.txt
index c21945c..95913e2 100644
--- a/tools/testfiles/h5diff_10.txt
+++ b/tools/testfiles/h5diff_10.txt
@@ -9,6 +9,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_600.txt b/tools/testfiles/h5diff_600.txt
index aaa60f9..4ec69fb 100644
--- a/tools/testfiles/h5diff_600.txt
+++ b/tools/testfiles/h5diff_600.txt
@@ -9,6 +9,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_601.txt b/tools/testfiles/h5diff_601.txt
index 53ea6e8..d609863 100644
--- a/tools/testfiles/h5diff_601.txt
+++ b/tools/testfiles/h5diff_601.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_602.txt b/tools/testfiles/h5diff_602.txt
index ae3c558..4e9f912 100644
--- a/tools/testfiles/h5diff_602.txt
+++ b/tools/testfiles/h5diff_602.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_603.txt b/tools/testfiles/h5diff_603.txt
index 2892d30..0deec30 100644
--- a/tools/testfiles/h5diff_603.txt
+++ b/tools/testfiles/h5diff_603.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_604.txt b/tools/testfiles/h5diff_604.txt
index b21cf6b..9803ec7 100644
--- a/tools/testfiles/h5diff_604.txt
+++ b/tools/testfiles/h5diff_604.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_605.txt b/tools/testfiles/h5diff_605.txt
index 79f26b9..533f4ec 100644
--- a/tools/testfiles/h5diff_605.txt
+++ b/tools/testfiles/h5diff_605.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_606.txt b/tools/testfiles/h5diff_606.txt
index 5fbe6c1..08a97a0 100644
--- a/tools/testfiles/h5diff_606.txt
+++ b/tools/testfiles/h5diff_606.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_611.txt b/tools/testfiles/h5diff_611.txt
index c946152..3369ce1 100644
--- a/tools/testfiles/h5diff_611.txt
+++ b/tools/testfiles/h5diff_611.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_612.txt b/tools/testfiles/h5diff_612.txt
index 4c90acc..ec7d9c8 100644
--- a/tools/testfiles/h5diff_612.txt
+++ b/tools/testfiles/h5diff_612.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_613.txt b/tools/testfiles/h5diff_613.txt
index 7d625fe..b9a8790 100644
--- a/tools/testfiles/h5diff_613.txt
+++ b/tools/testfiles/h5diff_613.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_614.txt b/tools/testfiles/h5diff_614.txt
index bf7e7a0..b4f742c 100644
--- a/tools/testfiles/h5diff_614.txt
+++ b/tools/testfiles/h5diff_614.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_615.txt b/tools/testfiles/h5diff_615.txt
index 8b62641..144abef 100644
--- a/tools/testfiles/h5diff_615.txt
+++ b/tools/testfiles/h5diff_615.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_620.txt b/tools/testfiles/h5diff_620.txt
index 8cee6d1..cb12291 100644
--- a/tools/testfiles/h5diff_620.txt
+++ b/tools/testfiles/h5diff_620.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_621.txt b/tools/testfiles/h5diff_621.txt
index b2f564f..e265a2c 100644
--- a/tools/testfiles/h5diff_621.txt
+++ b/tools/testfiles/h5diff_621.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_622.txt b/tools/testfiles/h5diff_622.txt
index ce3cc03..c89b1ef 100644
--- a/tools/testfiles/h5diff_622.txt
+++ b/tools/testfiles/h5diff_622.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_623.txt b/tools/testfiles/h5diff_623.txt
index 19ea4e3..6dfeda7 100644
--- a/tools/testfiles/h5diff_623.txt
+++ b/tools/testfiles/h5diff_623.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output
diff --git a/tools/testfiles/h5diff_624.txt b/tools/testfiles/h5diff_624.txt
index 98adccd..4835b9e 100644
--- a/tools/testfiles/h5diff_624.txt
+++ b/tools/testfiles/h5diff_624.txt
@@ -10,6 +10,7 @@ file2 File name of the second HDF5 file
[obj2] Name of an HDF5 object, in absolute path
[OPTIONS] are:
[-h] Print out this information
+[-V] Print HDF5 library version number and exit
[-r] Report mode. Print differences
[-v] Verbose mode. Print differences, list of objects, warnings
[-q] Quiet mode. Do not do output