public static void Main(String[] args) { if (args.Length > 0) { switch (args[0]) { case "-h": case "--help": HelpPrinter.Run(); return; case "-b": case "--benchmark": Benchmarks.Run(); return; default: Console.WriteLine("Argument not found!"); Environment.Exit(-1); return; } } Repl.Run(); }
public static void Main(string[] args) { Console.WriteLine("Command Line Test Tool of YAMP"); Console.WriteLine(); Console.WriteLine("--------------------------"); Console.WriteLine(); Console.WriteLine(" YAMP VERSION " + YAMP.Parser.Version); Console.WriteLine(); Console.WriteLine("--------------------------"); Console.WriteLine(); LoadCore(); LoadPhysics(); #if DEBUG YAMPTests.Run(); #elif BENCHMARKS Benchmarks.Run(); #elif CONSOLE YAMPConsole.Run(); #endif }