Recurity.Blitzableiter.Program.Main C# (CSharp) Method

Main() static private method

The program entry point
static private Main ( string args ) : void
args string The arguments
return void
        static void Main(string[] args)
        {
            if (args.Length < 2)
            {
                Console.WriteLine("");
                Console.WriteLine(" Too few arguments");
                PrintHelp();
                return;
            }

            Files = new List<string>();
            Directories = new List<string>();

            Recurity.Swf.Log.LogsDebugEvent += new LogEventHandler(PrintLogDebug);
            Recurity.Swf.Log.LogsWarningEvent += new LogEventHandler(PrintLogWarning);
            Recurity.Swf.Log.LogsErrorEvent += new LogEventHandler(PrintLogError);

            Console.Write(Header);
            ParseCMDArgs(args);
            Console.WriteLine(" {0} Errors, {1} Warnings, {2} Debug Messages", Errors, Warnings, DebugMessages);
            if (Warnings > 0)
            {
                Console.WriteLine(" Use the option -v to view Warnings");
            }
            if (DebugMessages > 0)
            {
                Console.WriteLine(" Use the option -vv to view Warnings and Debug Messages");
            }
            //Console.WriteLine(" Press any key to continue");
            //Console.ReadLine();
        }