diff options
author | Thomas White <taw@physics.org> | 2020-02-05 13:37:43 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-02-05 13:37:43 +0100 |
commit | 5a645c757aead2b62e75e982587a03dbb21fcd54 (patch) | |
tree | c5937c319c796d456f7c4af42d1b5877e5074079 | |
parent | a9c214f7172a0b8c013ec9ad09a6f107f2d516b4 (diff) |
indexamajig: Hide --spectrum-file and add a warning
-rw-r--r-- | src/indexamajig.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 6d15b8a2..c21c6290 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -213,6 +213,8 @@ static error_t parse_arg(int key, char *arg, struct argp_state *state) case 209 : args->spectrum_fn = strdup(arg); + ERROR("WARNING: Prediction using arbitrary spectrum does not " + "yet work in a useful way.\n"); break; /* ---------- Peak search ---------- */ @@ -715,7 +717,8 @@ int main(int argc, char *argv[]) {"zmq-msgpack", 207, NULL, OPTION_NO_USAGE, "Receive data in MessagePack format " "over ZMQ"}, {"no-image-data", 208, NULL, OPTION_NO_USAGE, "Do not load image data (from ZMQ)"}, - {"spectrum-file", 209, "fn", OPTION_NO_USAGE, "File containing radiation spectrum"}, + {"spectrum-file", 209, "fn", OPTION_NO_USAGE | OPTION_HIDDEN, + "File containing radiation spectrum"}, {NULL, 0, 0, OPTION_DOC, "Peak search options:", 3}, {"peaks", 301, "method", 0, "Peak search method. Default: zaef"}, |