diff --git a/applications/instantfpc/examples/writeparameters.pas b/applications/instantfpc/examples/writeparameters.pas new file mode 100755 index 000000000..f59bad00f --- /dev/null +++ b/applications/instantfpc/examples/writeparameters.pas @@ -0,0 +1,7 @@ +#!/usr/bin/env instantfpc +var + i: Integer; +begin + for i:=0 to ParamCount do writeln(ParamStr(i)); +end. + diff --git a/applications/instantfpc/instantfpc.lpr b/applications/instantfpc/instantfpc.lpr index debb98b20..d12ad35d4 100644 --- a/applications/instantfpc/instantfpc.lpr +++ b/applications/instantfpc/instantfpc.lpr @@ -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;