don't split on : or = in restore command parse
This commit is contained in:
parent
c176b5953f
commit
1ed5b420a9
10 changed files with 80 additions and 55 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue