summary refs log tree commit diff stats
path: root/nim/commands.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/commands.pas')
-rwxr-xr-x[-rw-r--r--]nim/commands.pas10
1 files changed, 6 insertions, 4 deletions
diff --git a/nim/commands.pas b/nim/commands.pas
index df6ab9da7..b281552c9 100644..100755
--- a/nim/commands.pas
+++ b/nim/commands.pas
@@ -63,6 +63,7 @@ const
 +{&} '  compile_to_c, cc          compile project with C code generator' +{&} nl
 +{&} '  doc                       generate the documentation for inputfile' +{&} nl
 +{&} '  rst2html                  converts a reStructuredText file to HTML' +{&} nl
++{&} '  rst2tex                   converts a reStructuredText file to TeX' +{&} nl
 +{&} 'Arguments:' +{&} nl
 +{&} '  arguments are passed to the program being run (if --run option is selected)' +{&} nl
 +{&} 'Options:' +{&} nl
@@ -112,6 +113,7 @@ const
 +{&} '  --lib:PATH                set the system library path' +{&} nl
 +{&} '  -c, --compile_only        compile only; do not assemble or link' +{&} nl
 +{&} '  --no_linking              compile but do not link' +{&} nl
++{&} '  --no_main                 do not generate a main procedure' +{&} nl
 +{&} '  --gen_script              generate a compile script (in the ''nimcache''' +{&} nl
 +{&} '                            subdirectory named ''compile_$project$scriptext'')' +{&} nl
 +{&} '  --os:SYMBOL               set the target operating system (cross-compilation)' +{&} nl
@@ -360,6 +362,10 @@ begin
     wNoLinking: begin

       expectNoArg(switch, arg, pass, info);

       include(gGlobalOptions, optNoLinking);

+    end;
+    wNoMain: begin
+      expectNoArg(switch, arg, pass, info);

+      include(gGlobalOptions, optNoMain);    
     end;

     wForceBuild, wF: begin

       expectNoArg(switch, arg, pass, info);

@@ -555,10 +561,6 @@ begin
       expectArg(switch, arg, pass, info);

       setCC(arg)

     end;

-    wMaxErr: begin

-      expectArg(switch, arg, pass, info);

-      gErrorMax := parseInt(arg);

-    end;

     else if strutils.find(switch, '.') >= strStart then

       options.setConfigVar(switch, arg)

     else