using System.CommandLine; using System.CommandLine.Invocation; namespace Duplicati.CommandLine.ServerUtil; /// /// Extensions for . /// public static class CommandExtensions { /// /// Adds the missing WithHandler method to . /// /// The command to add the handler to. /// The handler to add. /// The command with the handler added. public static Command WithHandler(this Command command, ICommandHandler handler) { command.Handler = handler; return command; } }