Skip to content

Commit

Permalink
shorten reading of cmd line options
Browse files Browse the repository at this point in the history
  • Loading branch information
Expander authored and Expander committed Sep 3, 2014
1 parent 0714107 commit 0738336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions meta/WriteOut.m
Expand Up @@ -440,8 +440,7 @@
Module[{parameterStr},
parameterStr = ToValidCSymbolString[parameter];
"\
found = set_input_parameter(option, \"--" <> parameterStr <> "=\", &input." <> parameterStr <>");
if (found)
if(set_input_parameter(option, \"--" <> parameterStr <> "=\", &input." <> parameterStr <>"))
continue;
"
Expand All @@ -451,8 +450,7 @@
Module[{parameterStr},
parameterStr = ToValidCSymbolString[FlexibleSUSY`Sign[phase]];
"\
found = set_input_parameter(option, \"--" <> parameterStr <> "=\", &input." <> parameterStr <>");
if (found)
if(set_input_parameter(option, \"--" <> parameterStr <> "=\", &input." <> parameterStr <>"))
continue;
"
Expand Down
1 change: 0 additions & 1 deletion templates/scan.cpp.in
Expand Up @@ -66,7 +66,6 @@ void set_command_line_parameters(int argc, char* argv[],
{
for (int i = 1; i < argc; ++i) {
const std::string option(argv[i]);
bool found;

@parseCmdLineOptions@
if (option == "--help" || option == "-h") {
Expand Down

0 comments on commit 0738336

Please sign in to comment.