2016-02-04 20:41:50 +00:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using Microsoft.DotNet.Cli.Utils;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Test.Utilities
|
|
|
|
|
{
|
2017-03-14 21:07:51 +00:00
|
|
|
|
public sealed class HelpCommand : DotnetCommand
|
2016-02-04 20:41:50 +00:00
|
|
|
|
{
|
|
|
|
|
public override CommandResult Execute(string args = "")
|
|
|
|
|
{
|
2017-04-05 18:30:45 +00:00
|
|
|
|
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}";
|
2016-02-04 20:41:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|