Revert to accepting the “nolog” option, but do nothing about it
This is necessary to avoid an “unknown option” error. Ref. dynare#1743issue#70
parent
78874a01d3
commit
cd443a6083
|
@ -52,9 +52,6 @@ macroExpandModFile(const string &filename, const string &basename, const istream
|
||||||
void
|
void
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
/* "nolog" is in the following output, even though it is not parsed by the
|
|
||||||
preprocessor but by dynare.m, so that users get the right list of options
|
|
||||||
if they call the preprocessor from MATLAB/Octave. */
|
|
||||||
cerr << "Dynare usage: dynare mod_file [debug] [noclearall] [onlyclearglobals] [savemacro[=macro_file]] [onlymacro] [linemacro] [notmpterms] [nolog] [warn_uninit]"
|
cerr << "Dynare usage: dynare mod_file [debug] [noclearall] [onlyclearglobals] [savemacro[=macro_file]] [onlymacro] [linemacro] [notmpterms] [nolog] [warn_uninit]"
|
||||||
<< " [console] [nograph] [nointeractive] [parallel[=cluster_name]] [conffile=parallel_config_path_and_filename] [parallel_slave_open_mode] [parallel_test]"
|
<< " [console] [nograph] [nointeractive] [parallel[=cluster_name]] [conffile=parallel_config_path_and_filename] [parallel_slave_open_mode] [parallel_test]"
|
||||||
<< " [-D<variable>[=<value>]] [-I/path] [nostrict] [stochastic] [fast] [minimal_workspace] [compute_xrefs] [output=dynamic|first|second|third] [language=matlab|julia]"
|
<< " [-D<variable>[=<value>]] [-I/path] [nostrict] [stochastic] [fast] [minimal_workspace] [compute_xrefs] [output=dynamic|first|second|third] [language=matlab|julia]"
|
||||||
|
@ -212,6 +209,11 @@ main(int argc, char **argv)
|
||||||
line_macro = true;
|
line_macro = true;
|
||||||
else if (s == "notmpterms")
|
else if (s == "notmpterms")
|
||||||
no_tmp_terms = true;
|
no_tmp_terms = true;
|
||||||
|
else if (s == "nolog")
|
||||||
|
{
|
||||||
|
// Do nothing, the option is implemented at the dynare.m level.
|
||||||
|
// We nevertheless accept it, to avoid an “unknown option” error.
|
||||||
|
}
|
||||||
else if (s == "nowarn")
|
else if (s == "nowarn")
|
||||||
no_warn = true;
|
no_warn = true;
|
||||||
else if (s == "warn_uninit")
|
else if (s == "warn_uninit")
|
||||||
|
|
Loading…
Reference in New Issue