From 9b406b7dd13f3aa80cec98f4a6046bde7a5e957a Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Tue, 5 Sep 2023 16:53:14 +0900 Subject: [PATCH] Fix exit code on unknown argument --- osu.Server.DifficultyCalculator/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Server.DifficultyCalculator/Program.cs b/osu.Server.DifficultyCalculator/Program.cs index ed1962a..239c502 100644 --- a/osu.Server.DifficultyCalculator/Program.cs +++ b/osu.Server.DifficultyCalculator/Program.cs @@ -16,12 +16,12 @@ namespace osu.Server.DifficultyCalculator [Subcommand(typeof(BeatmapsStringCommand))] public class Program { - public static void Main(string[] args) + public static int Main(string[] args) { LegacyDifficultyCalculatorBeatmapDecoder.Register(); ServicePointManager.DefaultConnectionLimit = 128; - CommandLineApplication.Execute(args); + return CommandLineApplication.Execute(args); } public int OnExecute(CommandLineApplication app)