[fpc-devel]compiler/options.pas diff
Sergey Korshunoff
Sergey.Korshunoff at p5.f2666.n5020.z2.fidonet.org
Thu Aug 30 00:43:37 CEST 2001
Hello!
We have a nice program 'fpc' in compiler/util.
But we can not get a FPC help if we call 'fpc' utility
without any parameter. There is a patch:
=====================================================
-+- options.pas.old Wed Aug 29 23:41:42 2001
+++ options.pas Wed Aug 29 23:36:02 2001
@@ -1454,8 +1454,10 @@
end;
{ Write help pages }
- if (cmd='') and (paramcount=0) then
- Option.WriteHelpPages;
+ if (cmd='') and
+ ((paramcount=0) or ((paramcount=1) and (ParamStr(1)='')))
+ then
+ Option.WriteHelpPages;
{ Stop if errors in options }
if ErrorCount>0 then
=====================================================
Regards,
Sergey Korshunoff
More information about the fpc-devel
mailing list