static void Main(string[] args) { MyConsole console = new MyConsole(); console.Init(args[0]); foreach (string arg in args) { console.Run(arg); } MyConsole.Wait(); }
static void Main(string[] args) { foreach (string arg in args) { if (Regex.IsMatch(arg, @"\bc=*")) { Conf.confPath = arg.Substring(2); } } Conf.Init(); foreach (string arg in args) { MyConsole.Run(arg); } Conf.Close(); MyConsole.Wait(); MyConsole.Run("close"); }