Skip to content

Commit

Permalink
Add threads and output prefix to option constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuak94 committed Nov 27, 2019
1 parent 72d1e0c commit 69d2148
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions include/sviper/config.h
Original file line number Diff line number Diff line change
@@ -23,13 +23,18 @@ struct CmdOptions
std::string reference_file_name{};
std::string log_file_name{};

CmdOptions(std::string long_, std::string short_, std::string candidate_, std::string ref_) :
threads(std::thread::hardware_concurrency()),
CmdOptions(unsigned threads_,
std::string long_,
std::string short_,
std::string candidate_,
std::string ref_,
std::string output_prefix_) :
threads(threads_),
long_read_file_name(long_),
short_read_file_name(short_),
candidate_file_name(candidate_),
output_prefix(candidate_ + "_polished"),
reference_file_name(ref_) {}
reference_file_name(ref_),
output_prefix(output_prefix_) {}

CmdOptions() = default;
CmdOptions(const CmdOptions&) = default;

0 comments on commit 69d2148

Please sign in to comment.