Skip to content

Commit

Permalink
Changed processing default values to use Boost program options.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlexSee committed Sep 9, 2018
1 parent f254452 commit aaec4db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int handleParams(int argc, const char **argv)
("in-text-file,i", po::value<string>(&params.inTextFile)->required(), "input text file path (positional arg 1)")
("in-pattern-file,I", po::value<string>(&params.inPatternFile)->required(), "input pattern file path (positional arg 2)")
("approx,k", po::value<int>(&params.kApprox), "perform approximate search (Hamming distance) for k errors (preliminary, max pattern length = 12)")
("out-file,o", po::value<string>(&params.outFile), "output file path")
("out-file,o", po::value<string>(&params.outFile)->default_value("res.txt"), "output file path")
("pattern-count,p", po::value<int>(&params.nPatterns), "maximum number of patterns read from top of the patterns file (non-positive values are ignored)")
("version,v", "display version info");

Expand Down
6 changes: 3 additions & 3 deletions params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ struct Params
int nPatterns = noValue;

/** Input text file path (positional arg 1). */
std::string inTextFile = "";
std::string inTextFile;
/** Input pattern file path (positional arg 2). */
std::string inPatternFile = "";
std::string inPatternFile;

/** Output file path. */
std::string outFile = "res.txt";
std::string outFile;

/*
*** CONSTANTS
Expand Down

0 comments on commit aaec4db

Please sign in to comment.