dotnet-installer/src/dotnet/commands/dotnet-complete/ParseCommand.cs

23 lines
500 B
C#
Raw Normal View History

2017-03-09 10:53:17 -08:00
using System;
using System.Linq;
using Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Utils;
namespace Microsoft.DotNet.Cli
{
public class ParseCommand
{
public static int Run(string[] args)
{
DebugHelper.HandleDebugSwitch(ref args);
var resultOfParsingArg =
Parser.Instance.Parse(
args.Single());
Console.WriteLine(resultOfParsingArg.Diagram());
return 0;
}
}
}