aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2014-05-06 17:51:47 +0200
committerThomas White <taw@physics.org>2014-05-21 16:04:23 +0200
commit8c212e3abb7f4343affeb5e9e1092b59d3b74075 (patch)
treefd6629a34ebe77b2fc0ac9afc77eb5ffff77c9af /src/indexamajig.c
parent2658f7ca3fbdd0f037b9286812e6967b42517c0d (diff)
Added reporting of version number to all program and stream file
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index c41b1487..143a0d82 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -54,6 +54,7 @@
#include <sys/time.h>
#endif
+#include "version.h"
#include "utils.h"
#include "hdf5-file.h"
#include "index.h"
@@ -78,6 +79,7 @@ static void show_help(const char *s)
"Process and index FEL diffraction images.\n"
"\n"
" -h, --help Display this help message.\n"
+" --version Print CrystFEL version number and exit.\n"
"\n"
" -i, --input=<filename> Specify file containing list of images to process.\n"
" '-' means stdin, which is the default.\n"
@@ -247,6 +249,7 @@ int main(int argc, char *argv[])
{"image", 1, NULL, 'e'},
/* Long-only options with no arguments */
+ {"version", 0, NULL, 20},
{"filter-noise", 0, &iargs.noisefilter, 1},
{"no-check-prefix", 0, &config_checkprefix, 0},
{"basename", 0, &config_basename, 1},
@@ -296,6 +299,11 @@ int main(int argc, char *argv[])
show_help(argv[0]);
return 0;
+ case 20 :
+ printf("CrystFEL: " CRYSTFEL_VERSIONSTRING "\n");
+ printf(CRYSTFEL_BOILERPLATE"\n");
+ return 0;
+
case 'i' :
filename = strdup(optarg);
break;