1
0
Fork 0
mirror of https://github.com/ppy/osu-tools.git synced 2025-06-08 07:17:01 +09:00
osu-tools/PerformanceCalculator/Program.cs
2018-12-29 10:48:25 -05:00

34 lines
1.1 KiB
C#

// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-tools/master/LICENCE
using McMaster.Extensions.CommandLineUtils;
using osu.Framework.Logging;
using osu.Game.Beatmaps.Formats;
using PerformanceCalculator.Difficulty;
using PerformanceCalculator.Performance;
using PerformanceCalculator.Profile;
namespace PerformanceCalculator
{
[Command("dotnet PerformanceCalculator.dll")]
[Subcommand("difficulty", typeof(DifficultyCommand))]
[Subcommand("performance", typeof(PerformanceCommand))]
[Subcommand("profile", typeof(ProfileCommand))]
public class Program : CommandBase
{
public static void Main(string[] args)
{
LegacyDifficultyCalculatorBeatmapDecoder.Register();
Logger.Enabled = false;
CommandLineApplication.Execute<Program>(args);
}
public int OnExecute(CommandLineApplication app, IConsole console)
{
console.WriteLine("You must specify a subcommand.");
app.ShowHelp();
return 1;
}
}
}