mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-08 07:17:01 +09:00
29 lines
943 B
C#
29 lines
943 B
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 PerformanceCalculator.Difficulty;
|
|
using PerformanceCalculator.Performance;
|
|
|
|
namespace PerformanceCalculator
|
|
{
|
|
[Command("dotnet PerformanceCalculator.dll")]
|
|
[Subcommand("difficulty", typeof(DifficultyCommand))]
|
|
[Subcommand("performance", typeof(PerformanceCommand))]
|
|
public class Program : CommandBase
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|