public ToolListCommand( ParseResult result, ToolListGlobalOrToolPathCommand toolListGlobalOrToolPathCommand = null, ToolListLocalCommand toolListLocalCommand = null ) : base(result) { _toolListGlobalOrToolPathCommand = toolListGlobalOrToolPathCommand ?? new ToolListGlobalOrToolPathCommand(result); _toolListLocalCommand = toolListLocalCommand ?? new ToolListLocalCommand(result); }
public ToolListCommand( AppliedOption options, ParseResult result, ToolListGlobalOrToolPathCommand toolListGlobalOrToolPathCommand = null, ToolListLocalCommand toolListLocalCommand = null ) : base(result) { _options = options ?? throw new ArgumentNullException(nameof(options)); _result = result ?? throw new ArgumentNullException(nameof(result)); _toolListGlobalOrToolPathCommand = toolListGlobalOrToolPathCommand ?? new ToolListGlobalOrToolPathCommand(_options, _result); _toolListLocalCommand = toolListLocalCommand ?? new ToolListLocalCommand(_options, _result); }
public ToolListCommand( AppliedOption options, ParseResult result, ToolListGlobalOrToolPathCommand toolListGlobalOrToolPathCommand = null, ToolListLocalCommand toolListLocalCommand = null ) : base(result) { _options = options ?? throw new ArgumentNullException(nameof(options)); _result = result ?? throw new ArgumentNullException(nameof(result)); _toolListGlobalOrToolPathCommand = toolListGlobalOrToolPathCommand ?? new ToolListGlobalOrToolPathCommand(_options, _result); _toolListLocalCommand = toolListLocalCommand ?? new ToolListLocalCommand(_options, _result); _global = options.ValueOrDefault <bool>(GlobalOption); _local = options.ValueOrDefault <bool>(LocalOption); _toolPath = options.SingleArgumentOrDefault(ToolPathOption); }