From 3b93156f4d1cd82ea88b623f4bf01f6ce2f71b6b Mon Sep 17 00:00:00 2001 From: Svenja Mehringer Date: Wed, 8 Nov 2023 12:22:00 +0100 Subject: [PATCH] fix --- src/chopper.cpp | 2 -- src/set_up_parser.cpp | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chopper.cpp b/src/chopper.cpp index 77a32709..d8f002fd 100644 --- a/src/chopper.cpp +++ b/src/chopper.cpp @@ -39,8 +39,6 @@ int main(int argc, char const * argv[]) else if (config.k > config.window_size) throw sharg::parser_error{"The k-mer size cannot be bigger than the window size."}; - assert(parser.is_option_set("timing-output") && !config.output_timings.empty()); - config.disable_sketch_output = !parser.is_option_set("output-sketches-to"); } catch (sharg::parser_error const & ext) // the user did something wrong diff --git a/src/set_up_parser.cpp b/src/set_up_parser.cpp index b9555c7c..5f18a3a9 100644 --- a/src/set_up_parser.cpp +++ b/src/set_up_parser.cpp @@ -82,7 +82,8 @@ void set_up_parser(sharg::parser & parser, configuration & config) sharg::config{.short_id = '\0', .long_id = "timing-output", .description = "Write time and memory usage to specified file (TSV format). ", - .default_message = ""}); + .default_message = "", + .validator = sharg::output_file_validator{}}); parser.add_option( config.hibf_config.tmax,