diff options
Diffstat (limited to 'src/compare_hkl.c')
-rw-r--r-- | src/compare_hkl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/compare_hkl.c b/src/compare_hkl.c index d2173aff..e10b93aa 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -42,13 +42,13 @@ #include <gsl/gsl_errno.h> #include <gsl/gsl_statistics.h> +#include "version.h" #include "utils.h" #include "statistics.h" #include "symmetry.h" #include "reflist-utils.h" #include "cell-utils.h" - enum fom { FOM_R1I, @@ -109,6 +109,7 @@ static void show_help(const char *s) " --intensity-shells Use shells of intensity instead of resolution.\n" "\n" " -h, --help Display this help message.\n" +" --version Print CrystFEL version number and exit.\n" ); } @@ -935,6 +936,7 @@ int main(int argc, char *argv[]) /* Long options */ const struct option longopts[] = { {"help", 0, NULL, 'h'}, + {"version", 0, NULL, 10 }, {"symmetry", 1, NULL, 'y'}, {"pdb", 1, NULL, 'p'}, {"rmin", 1, NULL, 2}, @@ -962,6 +964,11 @@ int main(int argc, char *argv[]) show_help(argv[0]); return 0; + case 10 : + printf("CrystFEL: " CRYSTFEL_VERSIONSTRING "\n"); + printf(CRYSTFEL_BOILERPLATE"\n"); + return 0; + case 'y' : sym_str = strdup(optarg); break; |