2005-03-23 Lluis Sanchez Gual <lluis@novell.com>
[mono.git] / mcs / bmcs / driver.cs
index 35aafa8592de39a2521916ab5596b9e82a06e880..e348b92d7b72a573dbc563c8a2705e485261c9ba 100644 (file)
@@ -221,7 +221,6 @@ namespace Mono.CSharp
                                "   -nostdlib[+|-]     Does not load core libraries\n" +
                                "   -nowarn:W1[,W2]    Disables one or more warnings\n" + 
                                "   -out:FNAME         Specifies output file\n" +
-                               "   -doc:XMLFILE         Generates xml documentation into specified file\n" +
                                "   -pkg:P1[,Pn]       References packages P1..Pn\n" + 
                                "   --expect-error X   Expect that error X will be encountered\n" +
                                "   -recurse:SPEC      Recursively compiles the files in SPEC ([dir]/file)\n" + 
@@ -232,6 +231,13 @@ namespace Mono.CSharp
                                "   -warnaserror[+|-]  Treat warnings as errors\n" +
                                "   -warn:LEVEL        Sets warning level (the highest is 4, the default is 2)\n" +
                                "   -help2             Show other help flags\n" + 
+
+                               //
+                               // VB.NET specific compiler options
+                               //
+                               "   -removeintchecks[+|-]      Set default context to unchecked\n" +
+                               "   -optionstrict[+|-]      Enables stricter type checking\n" +
+                               
                                "\n" +
                                "Resources:\n" +
                                "   -linkresource:FILE[,ID] Links FILE as a resource\n" +
@@ -887,6 +893,19 @@ namespace Mono.CSharp
                        case "--noconfig":
                                load_default_config = false;
                                return true;
+
+                               //
+                               // VB.NET specific compiler options
+                               //
+
+                       case "--removeintchecks":
+                               RootContext.Checked = false;
+                               return true;
+
+                       case "--optionstrict":
+                               RootContext.StricterTypeChecking= true;
+                               return true;
+                               
                        }
 
                        return false;
@@ -1303,6 +1322,29 @@ namespace Mono.CSharp
                                        Environment.Exit (1);
                                }
                                return true;
+
+                               //
+                               // VB.NET specific compiler options
+                               //
+
+                       case "/removeintchecks":
+                       case "/removeintchecks+":
+                               RootContext.Checked = false;
+                               return true;
+
+                       case "/removeintchecks-":
+                               RootContext.Checked = true;
+                               return true;
+
+                       case "/optionstrict":
+                       case "/optionstrict+":
+                               RootContext.StricterTypeChecking = true;
+                               return true;
+
+                       case "/optionstrict-":
+                               RootContext.StricterTypeChecking = false;
+                               return true;
+
                        }
                        //Report.Error (2007, String.Format ("Unrecognized command-line option: '{0}'", option));
                        //Environment.Exit (1);