Commit 39ac99d9 authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

When using hlp several times on the command line, include the dep bound only once. Closes #32

parent 2de28399
......@@ -306,12 +306,16 @@ Algorithm* createAlg(const string& name, const AlgOptions& options) {
template <class A, typename Func>
void ProgramOptions::insertComputable(vector< pair<A, AlgOptions> > & elems, string description, Func func) {
string name;
string name;
string additionalOptions;
vector<AlgOptions> optList =
globalOptions.multiParseWithName(description, name);
if(name == "hlp") {
insertBound("dep:hybrid=no:share=depNoHybrid");
static bool hlpAlreadyUsed = false;
if(! hlpAlreadyUsed) {
insertBound("dep:hybrid=no:share=depNoHybrid");
hlpAlreadyUsed = true;
}
name = "greedy";
additionalOptions = "file=int@depNoHybrid[alloc]";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment