don't split on : or = in restore command parse

This commit is contained in:
Jon Sequeira 2017-03-07 11:28:35 -08:00
parent c176b5953f
commit 1ed5b420a9
10 changed files with 80 additions and 55 deletions

View file

@ -1,6 +1,7 @@
// 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 System;
using System.Collections.Generic;
using Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Utils;
@ -21,10 +22,14 @@ namespace Microsoft.DotNet.Tools.Restore
{
DebugHelper.HandleDebugSwitch(ref args);
var parser = Parser.DotnetCommand["restore"];
var parser = new Cli.CommandLine.Parser(
delimiters: Array.Empty<char>(),
options: Parser.DotnetCommand["restore"]);
var result = parser.Parse(args);
Reporter.Verbose.WriteLine(result.Diagram());
var restore = result["restore"];
var msbuildArgs = new List<string>