Exemplo n.º 1
0
        /// <summary>
        /// Close console and stop socket
        /// </summary>
        public static void ExitCommand(string[] Args)
        {
            // Contains arguments
            if (Args.Length > 1)
            {
                switch (Args[1])
                {
                case "-h":
                    MasterConsole.ShowHelp(CONSOLE_HELP.exit);
                    break;

                default:
                    MasterConsole.ConsoleMessage("Combination of arguments is wrong", CONSOLE_MSG.error);
                    break;
                }
            }
            else
            {
                MasterConsole.StopConsole();
            }
        }