* Set exitcode on error usage

git-svn-id: trunk@36918 -
This commit is contained in:
michael 2017-08-15 16:24:43 +00:00
parent 33fea4f9e3
commit b4c7be0b2d

View File

@ -387,6 +387,8 @@ begin
if HasOption('h', 'help') or ((ParamCount = 0) and (FRunMode<>rmAll)) then
begin
Usage;
if not HasOption('h','help') then
ExitCode:=1;
Exit(False);
end;
//get the format parameter