diff options
author | Thomas White <taw@physics.org> | 2014-11-09 06:09:53 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-11-09 06:09:53 +0100 |
commit | 39d7adab86fcc9adf19aa175fe5ae425000e7dd8 (patch) | |
tree | 41a0f25e2b4d08706b3024895aff2441753e62c6 /src/partial_sim.c | |
parent | d7f3262f6de5f3859e88cbda3b42fdc056d447ce (diff) |
Add warnings to everything which used to take a beam file
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r-- | src/partial_sim.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index 77b5a73b..504abf52 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -453,6 +453,7 @@ int main(int argc, char *argv[]) const struct option longopts[] = { {"help", 0, NULL, 'h'}, {"version", 0, NULL, 'v'}, + {"beam", 1, NULL, 'b'}, {"output", 1, NULL, 'o'}, {"input", 1, NULL, 'i'}, {"pdb", 1, NULL, 'p'}, @@ -478,7 +479,7 @@ int main(int argc, char *argv[]) }; /* Short options */ - while ((c = getopt_long(argc, argv, "hi:o:p:g:y:n:r:j:c:v", + while ((c = getopt_long(argc, argv, "hi:o:p:g:y:n:r:j:c:vb:", longopts, NULL)) != -1) { switch (c) { @@ -492,6 +493,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 partial_sim command line.\n"); + return 1; + case 'i' : input_file = strdup(optarg); break; |