From dc037b4698f07fedbcf582d3d49aba86a7bc4298 Mon Sep 17 00:00:00 2001 From: David McKenna Date: Sun, 6 Oct 2024 11:35:35 +0200 Subject: [PATCH] ...How was this never an issue before? --- src/CLI/lofar_cli_meta.c | 2 +- src/CLI/lofar_cli_meta.h.in | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CLI/lofar_cli_meta.c b/src/CLI/lofar_cli_meta.c index 351cbac6..1c0c9811 100644 --- a/src/CLI/lofar_cli_meta.c +++ b/src/CLI/lofar_cli_meta.c @@ -81,7 +81,7 @@ void parseInput(char *inputFormat, const char *optargvar, int8_t *inputProvided) int8_t parseOutput(lofar_udp_io_write_config *outConfig, lofar_udp_config *config, const char *optargvar, int8_t *outputProvided) { if (lofar_udp_io_write_parse_optarg(outConfig, optargvar) < 0) { - helpMessages(); + fprintf(stderr, "ERROR: Failed to parse output file name %s, exiting.\n", optargvar); return -1; } // If the metadata is not yet set, see if we can parse a requested type from the output filename diff --git a/src/CLI/lofar_cli_meta.h.in b/src/CLI/lofar_cli_meta.h.in index 8bb629d3..d44ab111 100644 --- a/src/CLI/lofar_cli_meta.h.in +++ b/src/CLI/lofar_cli_meta.h.in @@ -17,7 +17,6 @@ extern "C" { #endif // Define prototypes -void helpMessages(void); void sharedFlags(void); void processingModes(void);