public Parser(IParserService parserService, IEnumerable <IOspCommand> commands, IOptions <OspToolOptions> options) { _parserService = parserService; _commands = commands; Options = options; _commandArg = _parserService.AddCommandArgument("c", "command", new[] { "Command that has to be executed:" }, true); foreach (var ospCommand in _commands) { ospCommand.AddCommand(_commandArg); } CreateSamples(); }