Skip to content
Snippets Groups Projects
Commit fa7adc30 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Display help message if dynare is invoked without arguments.

parent 5eb66ff1
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ function dynare(fname, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if strcmpi(fname,'help')
if ~nargin || strcmpi(fname,'help')
skipline()
disp(['This is dynare version ' dynare_version() '.'])
skipline()
......@@ -41,6 +41,7 @@ if strcmpi(fname,'help')
skipline()
disp('dynare executes instruction included in FILENAME.mod.')
disp('See the reference manual for the available options.')
skipline()
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment