2016-02-04 12:41:50 -08: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 14:07:51 -07:00
|
|
|
|
public sealed class HelpCommand : DotnetCommand
|
2016-02-04 12:41:50 -08:00
|
|
|
|
{
|
|
|
|
|
public override CommandResult Execute(string args = "")
|
|
|
|
|
{
|
2017-04-05 11:30:45 -07: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 12:41:50 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|