Commit f1db5cd2 authored by Houtan Bastani's avatar Houtan Bastani

dynare command line: fix bug introduced in c258bad2

parent c258bad2
......@@ -199,9 +199,9 @@ fclose(fid);
if regexp(firstline, '\s*\/\/', 'once') == 1
firstline = regexprep(firstline, '\s*\/\/', '');
if ~isempty(regexp(firstline, '(^\s*\-\-\+\s*options:\s*)', 'once')) ...
&& ~isempty(regexp(firstline, '(\s*\+\-\-(\s*\w*\s*)*$)', 'once'))
&& ~isempty(regexp(firstline, '(\s*\+\-\-.*$)', 'once'))
firstline = regexprep(firstline, '(^\s*\-\-\+\s*options:\s*)', '');
firstline = regexprep(firstline, '(\s*\+\-\-(\s*\w*\s*)*$)', '');
firstline = regexprep(firstline, '(\s*\+\-\-.*$)', '');
dynoption = strsplit(firstline, {' ', ','});
if isequal(nargin, 1)
varargin = dynoption;
......
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