예제 #1
0
 static void Main(string[] args)
 {
     Options commandLineOptions = new Options();
     ICommandLineParser commandParser = new CommandLineParser();
     if (commandParser.ParseArguments(args, commandLineOptions, Console.Error))
     {
         if (ValidateOptions(commandLineOptions))
         {
             RequestProcessor procesor = new RequestProcessor(commandLineOptions);
         }
     }
     else
     {
         // Command line params could not be parsed,
         // or help was requested
         Environment.ExitCode = -1;
     }
 }
예제 #2
0
        static void Main(string[] args)
        {
            Options            commandLineOptions = new Options();
            ICommandLineParser commandParser      = new CommandLineParser();

            if (commandParser.ParseArguments(args, commandLineOptions, Console.Error))
            {
                if (ValidateOptions(commandLineOptions))
                {
                    RequestProcessor procesor = new RequestProcessor(commandLineOptions);
                }
            }
            else
            {
                // Command line params could not be parsed,
                // or help was requested
                Environment.ExitCode = -1;
            }
        }