summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-10-31 21:24:54 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-10-31 21:24:54 (GMT)
commit88cf7ce60bd0784835d66ff79945baeaa0ddd678 (patch)
treedc3b575daa8a530c37a407d7f7e0fde5a204a6c1 /tools
parent5261f00f2e12017223f4151d8a416cfacf43410c (diff)
downloadhdf5-88cf7ce60bd0784835d66ff79945baeaa0ddd678.zip
hdf5-88cf7ce60bd0784835d66ff79945baeaa0ddd678.tar.gz
hdf5-88cf7ce60bd0784835d66ff79945baeaa0ddd678.tar.bz2
[svn-r14227] new feature: add a -V version flag for h5import
tested: windows, linux
Diffstat (limited to 'tools')
-rwxr-xr-xtools/h5import/h5import.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c
index 1424ac2..f8f518b 100755
--- a/tools/h5import/h5import.c
+++ b/tools/h5import/h5import.c
@@ -20,6 +20,8 @@
#include <string.h>
#include <ctype.h>
#include "h5import.h"
+#include "h5tools_utils.h"
+
int main(int argc, char *argv[])
{
@@ -47,6 +49,13 @@ int main(int argc, char *argv[])
argc = ccommand(&argv);
#endif
+ if ( argv[1] && (strcmp("-V",argv[1])==0) )
+ {
+ print_version("h5import");
+ exit(EXIT_SUCCESS);
+
+ }
+
/*
* validate the number of command line arguments
*/