move parse result validation to CommandBase to allow custom messages

This commit is contained in:
Jon Sequeira 2017-03-19 14:30:43 -07:00
parent e0ca794ed5
commit 43c13f2f53
16 changed files with 75 additions and 31 deletions

View file

@ -17,7 +17,10 @@ namespace Microsoft.DotNet.Tools.Sln.Add
private readonly AppliedOption _appliedCommand;
private readonly string _fileOrDirectory;
public AddProjectToSolutionCommand(AppliedOption appliedCommand, string fileOrDirectory)
public AddProjectToSolutionCommand(
AppliedOption appliedCommand,
string fileOrDirectory,
ParseResult parseResult) : base(parseResult)
{
if (appliedCommand == null)
{