mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 13:49:40 +02:00
* Set exitcode on error usage
git-svn-id: trunk@36918 -
This commit is contained in:
parent
33fea4f9e3
commit
b4c7be0b2d
@ -387,6 +387,8 @@ begin
|
|||||||
if HasOption('h', 'help') or ((ParamCount = 0) and (FRunMode<>rmAll)) then
|
if HasOption('h', 'help') or ((ParamCount = 0) and (FRunMode<>rmAll)) then
|
||||||
begin
|
begin
|
||||||
Usage;
|
Usage;
|
||||||
|
if not HasOption('h','help') then
|
||||||
|
ExitCode:=1;
|
||||||
Exit(False);
|
Exit(False);
|
||||||
end;
|
end;
|
||||||
//get the format parameter
|
//get the format parameter
|
||||||
|
Loading…
Reference in New Issue
Block a user