From 88cf7ce60bd0784835d66ff79945baeaa0ddd678 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Wed, 31 Oct 2007 16:24:54 -0500 Subject: [svn-r14227] new feature: add a -V version flag for h5import tested: windows, linux --- tools/h5import/h5import.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 #include #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 */ -- cgit v0.12