Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet-nuget doesn't support verbosity #6374

Open
livarcocc opened this issue Jan 2, 2018 · 5 comments
Open

dotnet-nuget doesn't support verbosity #6374

livarcocc opened this issue Jan 2, 2018 · 5 comments
Assignees
Labels
Area:Logging Platform:Xplat Priority:2 Issues for the current backlog. Product:dotnet.exe Type:DCR Design Change Request

Comments

@livarcocc
Copy link

From @kasper3 on December 29, 2017 22:10

dotnet nuget push --source {uri} path.nupkg -v q

# error: Unrecognized option '-v'

dotnet nuget push --source {uri} path.nupkg --verbosity quiet

# error: Unrecognized option '--verbosity'

However,

dotnet nuget --verbosity quiet push --source {uri} path.nupkg

doesn't throw but doesn't quiet the verbosity either.

This breaks what --help quotes:

Common options:
  -v|--verbosity        Set the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
  -h|--help             Show help.

--verbosity is NOT a common option, only --help is

Copied from original issue: dotnet/cli#8306

@livarcocc
Copy link
Author

It seems like we are passing down the -v q to nuget but nuget does not recognize the argument. If nuget does not recognize this argument, please, re-activate the CLI issue and we will figure out how to make it clear that not exactly all commands respect this argument.

@zhili1208 zhili1208 added this to the Backlog milestone Jan 2, 2018
@zhili1208 zhili1208 added Priority:2 Issues for the current backlog. Platform:Xplat labels Jan 2, 2018
@zhili1208
Copy link
Contributor

looks like NuGet.Command.Xplat don't have verbosity option, we should add it.

@rrelyea
Copy link
Contributor

rrelyea commented Nov 18, 2019

should fix across the set of commands as appropriate.
dotnet add package -- likely verbosity should apply to restore under covers, and perhaps restore default verbosity should change.
dotnet nuget sources - in nuget.exe, supported a verbosity quiet.
etc...

@rrelyea
Copy link
Contributor

rrelyea commented Feb 5, 2020

When we do this, consider which of these tests to add back in... (look at history):
test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/BasicLoggingTests.cs

@Sebbstar
Copy link

Sebbstar commented Apr 6, 2021

is there any workaround to troubleshoot (enable logs) for dotnet nuget push?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Logging Platform:Xplat Priority:2 Issues for the current backlog. Product:dotnet.exe Type:DCR Design Change Request
Projects
None yet
Development

No branches or pull requests

7 participants