summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/hdf2gif.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-11-05 20:37:37 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-11-05 20:37:37 (GMT)
commitf0124823867f2ce6a807c396a71ef28156c53ed7 (patch)
tree4083cd4e42b88f3292022bc2a10ebbfd4dbfc1f8 /hl/tools/gif2h5/hdf2gif.c
parentc57f03ad75468923dac7e52e161510a4eb5e972f (diff)
downloadhdf5-f0124823867f2ce6a807c396a71ef28156c53ed7.zip
hdf5-f0124823867f2ce6a807c396a71ef28156c53ed7.tar.gz
hdf5-f0124823867f2ce6a807c396a71ef28156c53ed7.tar.bz2
[svn-r14237] new feature: add a -V option to h52gif and gif2h5
tested: linux
Diffstat (limited to 'hl/tools/gif2h5/hdf2gif.c')
-rw-r--r--hl/tools/gif2h5/hdf2gif.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/hl/tools/gif2h5/hdf2gif.c b/hl/tools/gif2h5/hdf2gif.c
index 3f57386..7def4f0 100644
--- a/hl/tools/gif2h5/hdf2gif.c
+++ b/hl/tools/gif2h5/hdf2gif.c
@@ -17,6 +17,8 @@
#include <assert.h>
#include "gif.h"
#include "H5IMpublic.h"
+#include "h5tools_utils.h"
+
int EndianOrder;
@@ -33,6 +35,8 @@ static void
usage(void)
{
printf("Usage: h52gif <h5_file> <gif_file> -i <h5_image>\n");
+ fprintf(stdout, " h52gif -V \n");
+ fprintf(stdout, " Print HDF5 library version and exit\n");
printf("h52gif expects *at least* one h5_image.\n");
}
@@ -65,6 +69,14 @@ int main(int argc , char **argv)
int bool_is_image = 0; /* 0 = false , 1 = true */
char *image_name = NULL;
int idx;
+
+ if ( argv[1] && (strcmp("-V",argv[1])==0) )
+ {
+ print_version("gif2h5");
+ exit(EXIT_SUCCESS);
+
+ }
+
if (argc < 4)
{