mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 03:19:27 +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
|
||||
begin
|
||||
Usage;
|
||||
if not HasOption('h','help') then
|
||||
ExitCode:=1;
|
||||
Exit(False);
|
||||
end;
|
||||
//get the format parameter
|
||||
|
Loading…
Reference in New Issue
Block a user