wabbajack/Wabbajack.CLI/Verbs/AVerb.cs
2020-04-06 15:06:02 +02:00

19 lines
413 B
C#

using System.Threading.Tasks;
namespace Wabbajack.CLI.Verbs
{
public abstract class AVerb
{
public int Execute()
{
if (!CLIUtils.HasValidArguments(this))
CLIUtils.Exit("The provided arguments are not valid! Check previous messages for more information", -1);
return Run().Result;
}
protected abstract Task<int> Run();
}
}