Browse Source

pastojs: hint how to use -vl

git-svn-id: trunk@39300 -
Mattias Gaertner 7 years ago
parent
commit
b2bd41d08e
2 changed files with 5 additions and 3 deletions
  1. 4 2
      packages/pastojs/src/pas2jscompiler.pp
  2. 1 1
      utils/pas2js/docs/translation.html

+ 4 - 2
packages/pastojs/src/pas2jscompiler.pp

@@ -1199,7 +1199,9 @@ begin
 
 
     if PCUReader=nil then
     if PCUReader=nil then
       begin
       begin
-      // analyze module
+      // read source module (instead of precompiled module)
+
+      // -> analyze module
       aPrecompileFormat:=Compiler.FileCache.PrecompileFormat;
       aPrecompileFormat:=Compiler.FileCache.PrecompileFormat;
       if aPrecompileFormat<>nil then
       if aPrecompileFormat<>nil then
         UseAnalyzer.Options:=UseAnalyzer.Options+[paoImplReferences];
         UseAnalyzer.Options:=UseAnalyzer.Options+[paoImplReferences];
@@ -4077,7 +4079,7 @@ begin
   l('    n     : Show notes');
   l('    n     : Show notes');
   l('    h     : Show hints');
   l('    h     : Show hints');
   l('    i     : Show info');
   l('    i     : Show info');
-  l('    l     : Show line numbers');
+  l('    l     : Show line numbers, needs -vi');
   l('    a     : Show everything');
   l('    a     : Show everything');
   l('    0     : Show nothing (except errors)');
   l('    0     : Show nothing (except errors)');
   l('    b     : Show file names with full path');
   l('    b     : Show file names with full path');

+ 1 - 1
utils/pas2js/docs/translation.html

@@ -201,7 +201,7 @@ Put + after a boolean switch option to enable it, - to disable it
     n     : Show notes
     n     : Show notes
     h     : Show hints
     h     : Show hints
     i     : Show info
     i     : Show info
-    l     : Show line numbers
+    l     : Show line numbers, needs -vi
     a     : Show everything
     a     : Show everything
     0     : Show nothing (except errors)
     0     : Show nothing (except errors)
     b     : Show file names with full path
     b     : Show file names with full path