diff options
author | Valerio Mariani <valerio.mariani@desy.de> | 2014-05-06 17:51:47 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-05-21 16:04:23 +0200 |
commit | 8c212e3abb7f4343affeb5e9e1092b59d3b74075 (patch) | |
tree | fd6629a34ebe77b2fc0ac9afc77eb5ffff77c9af /src/process_hkl.c | |
parent | 2658f7ca3fbdd0f037b9286812e6967b42517c0d (diff) |
Added reporting of version number to all program and stream file
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r-- | src/process_hkl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c index d5fba397..1916a1ae 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -41,6 +41,7 @@ #include <unistd.h> #include <getopt.h> +#include "version.h" #include "utils.h" #include "statistics.h" #include "reflist-utils.h" @@ -61,6 +62,7 @@ static void show_help(const char *s) "Assemble and process FEL Bragg intensities.\n" "\n" " -h, --help Display this help message.\n" +" --version Print CrystFEL version number and exit.\n" " -i, --input=<filename> Specify input filename (\"-\" for stdin).\n" " -o, --output=<filename> Specify output filename for merged intensities\n" " Default: processed.hkl).\n" @@ -452,6 +454,7 @@ int main(int argc, char *argv[]) {"min-res", 1, NULL, 5}, {"push-res", 1, NULL, 6}, {"res-push", 1, NULL, 6}, /* compat */ + {"version", 0, NULL, 7}, {0, 0, NULL, 0} }; @@ -554,6 +557,11 @@ int main(int argc, char *argv[]) push_res = push_res*1e9; break; + case 7 : + printf("CrystFEL: " CRYSTFEL_VERSIONSTRING "\n"); + printf(CRYSTFEL_BOILERPLATE"\n"); + return 0; + case '?' : break; |