Example #1
0
        public static void Main(string[] aArgs) {
            Console.WriteLine("Assembly Info Builder 3.0.0.0 Copyright (C) 2004 David Hervieux\r\n");

            CommandLineManager _CommandLineManager = new CommandLineManager();
            _CommandLineManager.DefaultMessage = DEFAULT_MESSAGE;

            ValueCommandLineOption _OutputCommandLineOption = new ValueCommandLineOption(OUTPUT_FILE_SWITCH);
            ValueCommandLineOption _InputCommandLineOption = new ValueCommandLineOption(INPUT_FILE_SWITCH);
            ValueCommandLineOption _LanguageCommandLineOption = new ValueCommandLineOption(LANGUAGE_SWITCH);

            _CommandLineManager.RegisterCommandLineSwitch(_OutputCommandLineOption);
            _CommandLineManager.RegisterCommandLineSwitch(_InputCommandLineOption);
            _CommandLineManager.RegisterCommandLineSwitch(_LanguageCommandLineOption);

            if (aArgs.Length != 0 && _CommandLineManager.Process(aArgs)) {
                Run(_CommandLineManager);
            } else {
                Console.WriteLine(_CommandLineManager.DefaultMessage);
            }
        }