fpc/utils/instantfpc/examples/exitcode.pas
2011-12-19 17:40:02 +00:00

14 lines
159 B
ObjectPascal

#!/usr/bin/env instantfpc
{$mode objfpc}{$H+}
uses SysUtils;
var i: integer;
begin
i:=StrToInt(ParamStr(1));
writeln('exit code: ',i);
Halt(i);
end.