private static void Main(string[] args)
{
try
{
var options = new Options();
if (!Parser.Default.ParseArguments(args, options))
{
var helpText = new HelpText("Laan SolutionConverter", Assembly.GetEntryAssembly().GetName().Version.ToString());
helpText.AddOptions(options);
Console.WriteLine(helpText.ToString());
return;
}
switch (options.Mode)
{
case Mode.Xml:
ConvertToXml(options);
break;
case Mode.Sln:
ConvertToSln(options);
break;
}
}
catch (Exception exception)
{
Console.WriteLine(exception);
}
}