Skip to content

Commit

Permalink
Added default values for "--preOptModules" and "--postOptModules" to …
Browse files Browse the repository at this point in the history
…help page
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Jul 30, 2015
1 parent 2c8a396 commit 36c6ff7
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions Compiler/Util/Flags.mo
Expand Up @@ -2031,8 +2031,8 @@ algorithm
help := matchcontinue (inTopics)
local
Util.TranslatableContent desc;
list<String> rest_topics, strs;
String str,name,str1,str2,str3,str4,str5,str6,str7,str8;
list<String> rest_topics, strs, data;
String str,name,str1,str1a,str1b,str2,str3,str4,str5,str6,str7,str7a,str7b,str8;
ConfigFlag config_flag;
list<tuple<String,String>> topics;

Expand Down Expand Up @@ -2080,19 +2080,33 @@ algorithm

case {"optmodules"}
equation
str1 = System.gettext("The --preOptModules flag sets the optimization modules which are used before the\nmatching and index reduction in the back end. These modules are specified as a comma-separated list, where the valid modules are:");
// pre-optimization
str1 = System.gettext("The --preOptModules flag sets the optimization modules which are used before the\nmatching and index reduction in the back end. These modules are specified as a comma-separated list.");
str1 = stringAppendList(StringUtil.wordWrap(str1,System.getTerminalWidth(),"\n"));
CONFIG_FLAG(defaultValue=STRING_LIST_FLAG(data=data)) = PRE_OPT_MODULES;
str1a = System.gettext("The modules used by default are:") + "\n--preOptModules=" + stringDelimitList(data, ",");
str1b = System.gettext("The valid modules are:");
str2 = printFlagValidOptionsDesc(PRE_OPT_MODULES);

// matching
str3 = System.gettext("The --matchingAlgorithm sets the method that is used for the matching algorithm, after the pre optimization modules. Valid options are:");
str3 = stringAppendList(StringUtil.wordWrap(str3,System.getTerminalWidth(),"\n"));
str4 = printFlagValidOptionsDesc(MATCHING_ALGORITHM);

// index reduction
str5 = System.gettext("The --indexReductionMethod sets the method that is used for the index reduction, after the pre optimization modules. Valid options are:");
str5 = stringAppendList(StringUtil.wordWrap(str5,System.getTerminalWidth(),"\n"));
str6 = printFlagValidOptionsDesc(INDEX_REDUCTION_METHOD);
str7 = System.gettext("The --postOptModules then sets the optimization modules which are used after the index reduction, specified as a comma-separated list. The valid modules are:");

// post-optimization
str7 = System.gettext("The --postOptModules then sets the optimization modules which are used after the index reduction, specified as a comma-separated list.");
str7 = stringAppendList(StringUtil.wordWrap(str7,System.getTerminalWidth(),"\n"));
CONFIG_FLAG(defaultValue=STRING_LIST_FLAG(data=data)) = POST_OPT_MODULES;
str7a = System.gettext("The modules used by default are:") + "\n--postOptModules=" + stringDelimitList(data, ",");
str7b = System.gettext("The valid modules are:");
str8 = printFlagValidOptionsDesc(POST_OPT_MODULES);
help = stringAppendList({str1,"\n\n",str2,"\n",str3,"\n\n",str4,"\n",str5,"\n\n",str6,"\n",str7,"\n\n",str8,"\n"});

help = stringAppendList({str1,"\n\n",str1a,"\n\n",str1b,"\n",str2,"\n",str3,"\n\n",str4,"\n",str5,"\n\n",str6,"\n",str7,"\n\n",str7a,"\n\n",str7b,"\n",str8,"\n"});
then help;

case {str}
Expand Down

0 comments on commit 36c6ff7

Please sign in to comment.