Replace dotnet help parser with CliCommandLineParser

CliCommandLineParserVersion 138 cannot use help as command and --help as
opinion at the same timem, update to 142
This commit is contained in:
William Li 2017-04-05 11:30:45 -07:00
parent cddffb08d2
commit a6d3012da1
9 changed files with 147 additions and 45 deletions

View file

@ -9,8 +9,17 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
{
public override CommandResult Execute(string args = "")
{
args = $"help {args}";
return base.Execute(args);
return base.Execute(AppendHelp(args));
}
public override CommandResult ExecuteWithCapturedOutput(string args = "")
{
return base.ExecuteWithCapturedOutput(AppendHelp(args));
}
private string AppendHelp(string args)
{
return args = $"help {args}";
}
}
}