dotnet-installer/src/dotnet/ParserExtensions.cs
2017-03-09 12:31:34 -08:00

14 lines
No EOL
363 B
C#

using System.Linq;
using Microsoft.DotNet.Cli.CommandLine;
namespace Microsoft.DotNet.Cli
{
public static class ParserExtensions
{
public static ParseResult ParseFrom(
this CommandLine.Parser parser,
string context,
string[] args) =>
parser.Parse(context.Split(' ').Concat(args).ToArray());
}
}