summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/gif2hdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'hl/tools/gif2h5/gif2hdf.c')
-rw-r--r--hl/tools/gif2h5/gif2hdf.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/hl/tools/gif2h5/gif2hdf.c b/hl/tools/gif2h5/gif2hdf.c
index 9906a96..24aaf31 100644
--- a/hl/tools/gif2h5/gif2hdf.c
+++ b/hl/tools/gif2h5/gif2hdf.c
@@ -17,6 +17,8 @@
#include <stdlib.h>
#include "gif.h"
+#include "h5tools_utils.h"
+
int
main(int argv , char *argc[])
@@ -47,8 +49,17 @@ main(int argv , char *argc[])
GifMemoryStruct.GifApplicationExtension = NULL;
GifMemoryStruct.GifCommentExtension = NULL;
+ if ( argc[1] && (strcmp("-V",argc[1])==0) )
+ {
+ print_version("gif2h5");
+ exit(EXIT_SUCCESS);
+
+ }
+
if (argv < 3) {
- printf("\n\nWrong Usage. Use:\ngif2h5 <GIFFILE> <HDFFILE>\n\n");
+ printf("Usage: gif2h5 <GIFFILE> <HDFFILE>\n");
+ fprintf(stdout, " gif2h5 -V \n");
+ fprintf(stdout, " Print HDF5 library version and exit\n");
return(-1);
}