mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-07 23:07:01 +09:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using McMaster.Extensions.CommandLineUtils;
|
|
using osu.Framework.Logging;
|
|
using osu.Game.Beatmaps.Formats;
|
|
using PerformanceCalculator.Difficulty;
|
|
using PerformanceCalculator.Performance;
|
|
using PerformanceCalculator.Profile;
|
|
using PerformanceCalculator.Simulate;
|
|
|
|
namespace PerformanceCalculator
|
|
{
|
|
[Command("dotnet PerformanceCalculator.dll")]
|
|
[Subcommand("difficulty", typeof(DifficultyCommand))]
|
|
[Subcommand("performance", typeof(PerformanceCommand))]
|
|
[Subcommand("profile", typeof(ProfileCommand))]
|
|
[Subcommand("simulate", typeof(SimulateListing))]
|
|
[HelpOption("-?|-h|--help")]
|
|
public class Program
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|