/// <summary>
/// Main entry point
/// Parses command line arguments and passes the account off to CliLauncher
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
if (Properties.Settings.Default.newInstall)
{
Properties.Settings.Default.Upgrade();
Properties.Settings.Default.newInstall = false;
Properties.Settings.Default.Save();
}
if (!Updater.CheckUpdate())
{
var options = new Options();
if (CommandLine.Parser.Default.ParseArguments(args, options))
{
string error;
if (!Launcher.LaunchAccount(options, out error))
{
MessageBox.Show(error, "EVEm8 CLI Launcher");
}
}
else
{
MessageBox.Show(options.GetUsage(), "EVEm8 CLI Launcher");
}
}
}