Skip to content

Commit

Permalink
Merge pull request #300 from ASLeonard/index_only
Browse files Browse the repository at this point in the history
Reenable writing index only
  • Loading branch information
ekg authored Dec 2, 2024
2 parents 3049a68 + a8d1ae5 commit 9c15c7d
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 @@ -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));
Expand Down

0 comments on commit 9c15c7d

Please sign in to comment.