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:
parent
cddffb08d2
commit
a6d3012da1
9 changed files with 147 additions and 45 deletions
|
@ -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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue