WriteHelp() public method

public WriteHelp ( TextWriter textWriter ) : void
textWriter System.IO.TextWriter
return void
Esempio n. 1
0
        public static int Main(string[] args)
        {
            MonoCovOptions options = new MonoCovOptions ();
            options.ProcessArgs (args);
            args = options.RemainingArguments;

            if (options.showHelp) {
            options.WriteHelp(Console.Out);
            return 0;
            }

            if (options.exportXmlDir != null)
            return handleExportXml (options, args);

            if (options.exportHtmlDir != null)
            return handleExportHtml (options, args);

            if (options.exportLcovDir != null)
            return handleExportLcov (options, args);

            if (options.minClassCoverage > 0 || options.minMethodeCoverage > 0)
            return handleTestCoverage (options, args);

            #if GUI_qt
            return MonoCov.Gui.Qt.MonoCov.GuiMain (args);
            #else
            return MonoCov.Gui.Gtk.MonoCovGui.GuiMain (args);
            #endif
        }
Esempio n. 2
0
        public static int Main(string[] args)
        {
            MonoCovOptions options = new MonoCovOptions();

            options.ProcessArgs(args);
            args = options.RemainingArguments;

            if (options.showHelp)
            {
                options.WriteHelp(Console.Out);
                return(0);
            }

            if (options.exportXmlDir != null)
            {
                return(handleExportXml(options, args));
            }

            if (options.exportHtmlDir != null)
            {
                return(handleExportHtml(options, args));
            }

            if (options.minClassCoverage > 0 || options.minMethodeCoverage > 0)
            {
                return(handleTestCoverage(options, args));
            }

                #if GUI_qt
            return(MonoCov.Gui.Qt.MonoCov.GuiMain(args));
                #else
            return(MonoCov.Gui.Gtk.MonoCovGui.GuiMain(args));
                #endif
        }