summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-10-22 21:02:40 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-10-22 21:02:40 (GMT)
commitaaddd739b4a3ebaf7d61a2c60dd4c3d9a08e0654 (patch)
treede1ecec63959bf414994b431cf80b3d483d33119 /tools/h5diff
parentfad8e0440d2a5b5618a76d32ff928760bf571a3d (diff)
downloadhdf5-aaddd739b4a3ebaf7d61a2c60dd4c3d9a08e0654.zip
hdf5-aaddd739b4a3ebaf7d61a2c60dd4c3d9a08e0654.tar.gz
hdf5-aaddd739b4a3ebaf7d61a2c60dd4c3d9a08e0654.tar.bz2
[svn-r14216] add a -V version information for h5diff
tested: windows, linux
Diffstat (limited to 'tools/h5diff')
-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");