From a8d1ae5f7a0dd16a968e063eae4cd9cabd3e8c2d Mon Sep 17 00:00:00 2001 From: Alex Leonard Date: Thu, 21 Nov 2024 09:23:23 +0100 Subject: [PATCH] reenable writing index only --- src/interface/parse_args.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/interface/parse_args.hpp b/src/interface/parse_args.hpp index 9ee467e9..c6eeb48a 100644 --- a/src/interface/parse_args.hpp +++ b/src/interface/parse_args.hpp @@ -586,15 +586,20 @@ void parse_args(int argc, //map_parameters.world_minimizers = true; //} - if (read_index) + if (read_index || write_index) { map_parameters.indexFilename = args::get(read_index); } else { map_parameters.indexFilename = ""; } - map_parameters.overwrite_index = false; - map_parameters.create_index_only = false; + if (write_index) { + map_parameters.overwrite_index = true; + map_parameters.create_index_only = true; + } else { + map_parameters.overwrite_index = false; + map_parameters.create_index_only = false; + } if (index_by) { const int64_t index_size = handy_parameter(args::get(index_by));