static void Main(string[] args) { ParserX.AddTask <ArgsDogICME16>(DogICME16, "Dog@ICME16 evaluation"); ParserX.AddTask <ArgsCelebMM16>(CelebMM16, "Celeb@MM16 evaluation"); ParserX.AddTask <ArgsCheckLog>(CheckLog, "Check log file"); if (ParserX.ParseArgumentsWithUsage(args)) { Stopwatch timer = Stopwatch.StartNew(); ParserX.RunTask(); timer.Stop(); Console.WriteLine("Time used: {0}", timer.Elapsed); } }
static void Main(string[] args) { ParserX.AddTask <ArgsStart>(Start, "Start a new evaluation"); ParserX.AddTask <ArgsStart>(Resume, "Resume the last unfinished evaluation"); ParserX.AddTask <ArgsEval>(Cancel, "Cancel the current evaluation"); ParserX.AddTask <ArgsEval>(Check, "Check the progress of the current evaluation"); ParserX.AddTask <ArgsList>(List, "List the progress of all the current evaluations"); if (ParserX.ParseArgumentsWithUsage(args)) { Stopwatch timer = Stopwatch.StartNew(); ParserX.RunTask(); timer.Stop(); Console.WriteLine("Time used: {0}", timer.Elapsed); } }