summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5diff/h5diff_common.c')
-rw-r--r--tools/h5diff/h5diff_common.c13
1 files changed, 13 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");