added optional launch args for the auto updater

This commit is contained in:
Jamie.Rees 2016-12-12 08:43:40 +00:00
commit 9165f3f31e
4 changed files with 49 additions and 16 deletions

View file

@ -8,7 +8,14 @@ namespace PlexRequests.Updater
{
Console.WriteLine ("Starting PlexRequests .Net updater");
var s = new Updater();
s.Start(args[0]);
if (args.Length >= 2)
{
s.Start(args[0], args[1]);
}
else
{
s.Start(args[0], string.Empty);
}
}
}
}