diff --git a/Luatrauma.AutoUpdater/Program.cs b/Luatrauma.AutoUpdater/Program.cs index 1d9747a..71e797d 100644 --- a/Luatrauma.AutoUpdater/Program.cs +++ b/Luatrauma.AutoUpdater/Program.cs @@ -28,9 +28,9 @@ static void Main(string[] args) rootCommand.AddOption(optionServerOnly); rootCommand.AddOption(optionNightly); - rootCommand.SetHandler(async (string? runExe, bool serverOnly, bool nightly) => + rootCommand.SetHandler(async (string? runExe, bool nightly, bool serverOnly) => { - await Updater.Update(serverOnly); + await Updater.Update(nightly, serverOnly); if (runExe != null) { @@ -44,7 +44,7 @@ static void Main(string[] args) Process.Start(info); } - }, argumentRun, optionServerOnly, optionNightly); + }, argumentRun, optionNightly, optionServerOnly); rootCommand.Invoke(args); }