Skip to content

Commit

Permalink
Fixed reversed argument
Browse files Browse the repository at this point in the history
  • Loading branch information
evilfactory committed Oct 4, 2024
1 parent 6cb160d commit 4f69c53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Luatrauma.AutoUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -44,7 +44,7 @@ static void Main(string[] args)
Process.Start(info);
}
}, argumentRun, optionServerOnly, optionNightly);
}, argumentRun, optionNightly, optionServerOnly);

rootCommand.Invoke(args);
}
Expand Down

0 comments on commit 4f69c53

Please sign in to comment.