aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-06-02 14:30:53 +0200
committerThomas White <taw@physics.org>2023-06-02 14:30:53 +0200
commite03b82dd89295305e655bea301b321b7f8e15844 (patch)
tree0951f7c239c47a5d696bb36f193d3bf063599b06 /src/indexamajig.c
parent1d1a2a700d229852d9ba2e34b382a2f7b3c147f3 (diff)
ASAP::O: Use input stream name as output (add _hits to data source)
This means we don't need a stream name any more, so --asapo-output-stream became a simple flag parameter.
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 3bcc06b9..a7b5ec9d 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -449,7 +449,7 @@ static error_t parse_arg(int key, char *arg, struct argp_state *state)
break;
case 222 :
- args->asapo_params.output_stream = strdup(arg);
+ args->asapo_params.write_output_stream = 1;
break;
case 223 :
@@ -891,7 +891,7 @@ int main(int argc, char *argv[])
args.asapo_params.source = NULL;
args.asapo_params.stream = NULL;
args.asapo_params.wait_for_stream = 0;
- args.asapo_params.output_stream = NULL;
+ args.asapo_params.write_output_stream = 0;
args.cpu_pin = 0;
args.serial_start = 1;
args.if_peaks = 1;
@@ -1014,7 +1014,7 @@ int main(int argc, char *argv[])
{"asapo-stream", 220, "str", OPTION_NO_USAGE, "ASAP::O stream name"},
{"asapo-wait-for-stream", 221, NULL, OPTION_NO_USAGE,
"Wait for ASAP::O stream to appear"},
- {"asapo-output-stream", 222, "str", OPTION_NO_USAGE, "ASAP::O output stream name"},
+ {"asapo-output-stream", 222, NULL, OPTION_NO_USAGE, "Create an ASAP::O hits-only stream"},
{"cpu-pin", 223, NULL, OPTION_NO_USAGE, "Pin worker processes to CPUs"},
{NULL, 0, 0, OPTION_DOC, "Peak search options:", 3},