Removed the additional registration of ICommand

This commit is contained in:
Nils Andresen
2021-09-09 15:27:52 +02:00
committed by Patrik Svensson
parent d34012cad0
commit 49e8a980a7
2 changed files with 8 additions and 7 deletions

View File

@ -27,7 +27,6 @@ namespace Spectre.Console.Cli
if (command.CommandType != null)
{
registrar?.Register(typeof(ICommand), command.CommandType);
registrar?.Register(command.CommandType, command.CommandType);
}