instantfpc: added example to list all parmeters passed to a script

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1596 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
mgaertner
2011-04-23 19:16:30 +00:00
parent 9141eaa707
commit b01fc22a91
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/env instantfpc
var
i: Integer;
begin
for i:=0 to ParamCount do writeln(ParamStr(i));
end.

View File

@ -73,7 +73,7 @@ begin
writeln('instantfpc --get-cache');
writeln(' Prints cache directory to stdout.');
writeln;
writeln('Normal usage is to add as first line "#!instantfpc" to a source');
writeln('Normal usage is to add as first line "#!/usr/bin/instantfpc" to a source');
Halt(0);
end else if p='--get-cache' then begin
CacheDir:=GetCacheDir;