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 push - Missing value for option #4864

Closed
dtretyakov opened this issue Mar 21, 2017 · 10 comments · Fixed by NuGet/NuGet.Client#4326
Closed

dotnet nuget push - Missing value for option #4864

dtretyakov opened this issue Mar 21, 2017 · 10 comments · Fixed by NuGet/NuGet.Client#4326
Assignees
Labels

Comments

@dtretyakov
Copy link

dtretyakov commented Mar 21, 2017

> dotnet --info
.NET Command Line Tools (1.0.1)

Product Information:
 Version:            1.0.1
 Commit SHA-1 hash:  005db40cd1

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.0.1

When you trying to specify --no-symbols or --disable-buffering flag push command fails with:

dotnet nuget push **.nupkg -k ******* --no-symbols
Specify --help for a list of available options and commands.
error: Missing value for option 'no-symbols'

dotnet nuget push **.nupkg -k ******* --disable-buffering
Specify --help for a list of available options and commands.
error: Missing value for option 'disable-buffering'

Why should we need to provide some value for these flags and why it does not present in the docs?

@Kampfmoehre
Copy link

I have the same problem, workaround for me is to specify -n true

@CoskunSunali
Copy link

The issue appears when one uses dotnet nuget push too.

@gpresland
Copy link

Getting this error despite documentation stating no value to be specified:

https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push?tabs=netcore2x#options

@f00f
Copy link

f00f commented Sep 17, 2019

Same here :-(

Happens (at least) for --no-symbols and --interactive.

> dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   2.2.109
 Commit:    586f23c400

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17134
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.2.109\

Host (useful for support):
  Version: 2.2.7
  Commit:  b1e29ae826

.NET Core SDKs installed:
  2.2.109 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

@coultonluke
Copy link

Same

@donnie-msft
Copy link
Contributor

Looks (cautiously) simple to fix. For some reason these options are set to expect a SingleValue which doesn't make sense at a glance.

MarcDenman added a commit to UKHO/EventHub-Logging-Provider that referenced this issue Jan 13, 2020
The --no-symbols looks like a switch however currently behaves as a flag - NuGet/Home#4864 This commit changes the code to use it as a flag.
smaillet added a commit to UbiquityDotNET/Llvm.NET that referenced this issue Feb 28, 2020
@Mazas17
Copy link

Mazas17 commented Mar 23, 2020

For me workaround was to use --no-symbols 1

@donnie-msft
Copy link
Contributor

I'll take a look as part of Quality Week in a couple weeks.
Considering the workarounds that are in-place, will have to evaluate not breaking everybody by fixing this.

@donnie-msft donnie-msft removed this from the Backlog milestone Mar 23, 2020
@donnie-msft donnie-msft removed this from the Sprint 172 - 2020.06.15 milestone Jul 6, 2020
PathogenDavid added a commit to PathogenPlayground/GitHubActionsTest that referenced this issue Jul 20, 2020
@donnie-msft donnie-msft added this to the Sprint 175 - 2020.08.17 milestone Aug 17, 2020
@donnie-msft donnie-msft removed their assignment Sep 28, 2020
@donnie-msft donnie-msft removed this from the Sprint 176 - 2020.09.07 milestone Sep 28, 2020
sharpjs added a commit to sharpjs/PSql that referenced this issue Nov 16, 2020
brettfo added a commit to ixmilia/dxf that referenced this issue Jan 19, 2021
FrankvdStam added a commit to FrankvdStam/GridConsole that referenced this issue Jan 31, 2021
FrankvdStam added a commit to FrankvdStam/GridConsole that referenced this issue Jan 31, 2021
randymarsh77 added a commit to randymarsh77/hotreloadnuget that referenced this issue Feb 9, 2021
benspeth pushed a commit to EcovadisCode/Ev.ServiceBus that referenced this issue Mar 26, 2021
benspeth pushed a commit to EcovadisCode/Ev.ServiceBus that referenced this issue Mar 26, 2021
benspeth pushed a commit to EcovadisCode/Ev.ServiceBus that referenced this issue Mar 26, 2021
benspeth pushed a commit to EcovadisCode/Ev.ServiceBus that referenced this issue Mar 26, 2021
Turnerj added a commit to TurnerSoftware/RobotsExclusionTools that referenced this issue Jun 10, 2021
kdcllc added a commit to kdcllc/bet.ks8s that referenced this issue Jun 25, 2021
@erdembayar erdembayar self-assigned this Aug 23, 2021
@erdembayar erdembayar added this to the Sprint 2021-10 milestone Oct 25, 2021
brettfo added a commit to dotnet/interactive that referenced this issue Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.