add diag to VerbosityOption
This commit is contained in:
parent
ea899f236e
commit
ee2b8f2efa
3 changed files with 8 additions and 3 deletions
|
@ -22,7 +22,8 @@ namespace Microsoft.DotNet.Cli
|
||||||
"q", "quiet",
|
"q", "quiet",
|
||||||
"m", "minimal",
|
"m", "minimal",
|
||||||
"n", "normal",
|
"n", "normal",
|
||||||
"d", "detailed")
|
"d", "detailed",
|
||||||
|
"diag", "diagnostic")
|
||||||
.ForwardAs(o => $"/verbosity:{o.Arguments.Single()}"));
|
.ForwardAs(o => $"/verbosity:{o.Arguments.Single()}"));
|
||||||
|
|
||||||
public static ArgumentsRule DefaultToCurrentDirectory(this ArgumentsRule rule) =>
|
public static ArgumentsRule DefaultToCurrentDirectory(this ArgumentsRule rule) =>
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Microsoft.DotNet.Cli;
|
using Microsoft.DotNet.Cli;
|
||||||
|
using Microsoft.DotNet.Cli.CommandLine;
|
||||||
using Microsoft.DotNet.Cli.Utils;
|
using Microsoft.DotNet.Cli.Utils;
|
||||||
using Microsoft.DotNet.Tools.MSBuild;
|
using Microsoft.DotNet.Tools.MSBuild;
|
||||||
|
using Parser = Microsoft.DotNet.Cli.Parser;
|
||||||
|
|
||||||
namespace Microsoft.DotNet.Tools.Publish
|
namespace Microsoft.DotNet.Tools.Publish
|
||||||
{
|
{
|
||||||
|
@ -25,6 +27,8 @@ namespace Microsoft.DotNet.Tools.Publish
|
||||||
|
|
||||||
var result = parser.ParseFrom("dotnet publish", args);
|
var result = parser.ParseFrom("dotnet publish", args);
|
||||||
|
|
||||||
|
Reporter.Output.WriteLine(result.Diagram());
|
||||||
|
|
||||||
result.ShowHelpIfRequested();
|
result.ShowHelpIfRequested();
|
||||||
|
|
||||||
msbuildArgs.Add("/t:Publish");
|
msbuildArgs.Add("/t:Publish");
|
||||||
|
|
|
@ -29,10 +29,10 @@ namespace Microsoft.DotNet.Tools.Restore
|
||||||
|
|
||||||
var result = parser.ParseFrom("dotnet restore", args);
|
var result = parser.ParseFrom("dotnet restore", args);
|
||||||
|
|
||||||
result.ShowHelpIfRequested();
|
|
||||||
|
|
||||||
Reporter.Output.WriteLine(result.Diagram());
|
Reporter.Output.WriteLine(result.Diagram());
|
||||||
|
|
||||||
|
result.ShowHelpIfRequested();
|
||||||
|
|
||||||
var restore = result["dotnet"]["restore"];
|
var restore = result["dotnet"]["restore"];
|
||||||
|
|
||||||
var msbuildArgs = new List<string>
|
var msbuildArgs = new List<string>
|
||||||
|
|
Loading…
Reference in a new issue