Fix non static commands.

This commit is contained in:
2020-01-02 19:45:57 +00:00
parent 9bbc70f06e
commit 6556741fa3
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ namespace DiscImageChef.Commands
_gdprChange = gdprChange;
_autoCall = autoCall;
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
Handler = CommandHandler.Create<bool, bool>(Invoke);
}
public int Invoke(bool debug, bool verbose)

View File

@@ -46,7 +46,7 @@ namespace DiscImageChef.Commands
{
_masterDbUpdate = masterDbUpdate;
Handler = CommandHandler.Create(GetType().GetMethod(nameof(Invoke)));
Handler = CommandHandler.Create<bool, bool>(Invoke);
}
public int Invoke(bool debug, bool verbose)