Skip to content

Commit

Permalink
Merge branch 'main' of github.com:waveygang/wfmash into prefilter
Browse files Browse the repository at this point in the history
  • Loading branch information
ekg committed Dec 2, 2024
2 parents ce2175d + 9c15c7d commit 85a85f8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/interface/parse_args.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,15 +594,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));
Expand Down

0 comments on commit 85a85f8

Please sign in to comment.