aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-11-09 06:09:53 +0100
committerThomas White <taw@physics.org>2014-11-09 06:09:53 +0100
commit39d7adab86fcc9adf19aa175fe5ae425000e7dd8 (patch)
tree41a0f25e2b4d08706b3024895aff2441753e62c6 /src/indexamajig.c
parentd7f3262f6de5f3859e88cbda3b42fdc056d447ce (diff)
Add warnings to everything which used to take a beam file
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 02829b55..80894804 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -253,6 +253,7 @@ int main(int argc, char *argv[])
{"prefix", 1, NULL, 'x'},
{"threshold", 1, NULL, 't'},
{"image", 1, NULL, 'e'},
+ {"beam", 1, NULL, 'b'},
/* Long-only options with no arguments */
{"filter-noise", 0, &iargs.noisefilter, 1},
@@ -297,7 +298,7 @@ int main(int argc, char *argv[])
};
/* Short options */
- while ((c = getopt_long(argc, argv, "hi:o:z:p:x:j:g:t:e:v",
+ while ((c = getopt_long(argc, argv, "hi:o:z:p:x:j:g:t:e:vb:",
longopts, NULL)) != -1)
{
switch (c) {
@@ -311,6 +312,12 @@ int main(int argc, char *argv[])
printf(CRYSTFEL_BOILERPLATE"\n");
return 0;
+ case 'b' :
+ ERROR("WARNING: This version of CrystFEL no longer "
+ "uses beam files. Please remove the beam file "
+ "from your indexamajig command line.\n");
+ return 1;
+
case 'i' :
filename = strdup(optarg);
break;