Kaynağa Gözat

* --parse-impl option for testing.

git-svn-id: trunk@15797 -
marco 15 yıl önce
ebeveyn
işleme
9e56c4e8ab
2 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 2 2
      utils/fpdoc/dglobals.pp
  2. 3 0
      utils/fpdoc/fpdoc.pp

+ 2 - 2
utils/fpdoc/dglobals.pp

@@ -28,7 +28,7 @@ uses Classes, DOM, PasTree, PParser;
 Var
   LEOL : Integer;
   modir : string;
-  
+
 resourcestring
   // Output strings
   SDocPackageTitle           = 'Reference for package ''%s''';
@@ -142,7 +142,7 @@ resourcestring
   SUsageOption160  = '--show-private    Show private methods.';
   SUsageOption170  = '--warn-no-node    Warn if no documentation node was found.';
   SUsageOption180  = '--mo-dir=dir      Set directory where language files reside to dir';
-  
+  SUsageOption190  = '--parse-impl      (Experimental) try to parse implementation too';
   SUsageFormats        = 'The following output formats are supported by this fpdoc:';
   SUsageBackendHelp    = 'Specify an output format, combined with --help to get more help for this backend.';
   SUsageFormatSpecific = 'Output format "%s" supports the following options:';

+ 3 - 0
utils/fpdoc/fpdoc.pp

@@ -71,6 +71,7 @@ begin
   Writeln(SUsageOption160);
   Writeln(SUsageOption170);
   Writeln(SUsageOption180);
+  Writeln(SUsageOption190);
   L:=TStringList.Create;
   Try
     If (Backend='') then
@@ -208,6 +209,8 @@ begin
       CPUTarget := Arg
     else if Cmd = '--mo-dir' then
       modir := Arg
+    else if Cmd = '--parse-impl' then
+      Engine.InterfaceOnly:=false
     else
       begin
       BackendOptions.Add(Cmd);