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

NuGet -version (4.5) gets mad #6618

Open
shanselman opened this issue Feb 27, 2018 · 2 comments
Open

NuGet -version (4.5) gets mad #6618

shanselman opened this issue Feb 27, 2018 · 2 comments
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Area:Logging good first issue Issues identified as good for first-time contributors hacktoberfest help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Product:NuGet.exe NuGet.exe Status:Excluded from icebox cleanup Status:Inactive Icebox issues not updated for a specific long time
Milestone

Comments

@shanselman
Copy link

NuGet should not freak out when I do a -v ersion check.

Details about Problem

C:\Users\scott>nuget --version
Unknown command: '--version'
NuGet.CommandLine.CommandLineException: Unknown command: '--version'
   at NuGet.CommandLine.CommandManager.GetCommand(String commandName)
   at NuGet.CommandLine.CommandLineParser.ParseCommandLine(IEnumerable`1 commandLineArgs)
   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)

C:\Users\scott>nuget -version
Unknown command: '-version'
NuGet.CommandLine.CommandLineException: Unknown command: '-version'
   at NuGet.CommandLine.CommandManager.GetCommand(String commandName)
   at NuGet.CommandLine.CommandLineParser.ParseCommandLine(IEnumerable`1 commandLineArgs)
   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)

C:\Users\scott>nuget -v
Unknown command: '-v'
NuGet.CommandLine.CommandLineException: Unknown command: '-v'
   at NuGet.CommandLine.CommandManager.GetCommand(String commandName)
   at NuGet.CommandLine.CommandLineParser.ParseCommandLine(IEnumerable`1 commandLineArgs)
   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)

Did something change in NuGet.exe 4.5?

@nkolev92
Copy link
Member

I don't think NuGet ever had a version command?

nuget.exe help

and

nuget.exe

should do the trick.

The stacktrace being logged on normal weirdness started in 4.3.

@nkolev92 nkolev92 added Product:NuGet.exe NuGet.exe Area:ErrorHandling warnings and errors/log messages & related error codes. Area:Logging labels Feb 28, 2018
@nkolev92 nkolev92 added this to the Backlog milestone Feb 28, 2018
@nkolev92 nkolev92 added Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. help wanted Considered good issues for community contributions. labels Feb 28, 2018
@dominoFire dominoFire self-assigned this Nov 28, 2018
@ghost ghost added the Status:Inactive Icebox issues not updated for a specific long time label Sep 1, 2022
@nkolev92
Copy link
Member

Duplicate in #11434 which has more context.

@nkolev92 nkolev92 added the good first issue Issues identified as good for first-time contributors label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Area:Logging good first issue Issues identified as good for first-time contributors hacktoberfest help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Product:NuGet.exe NuGet.exe Status:Excluded from icebox cleanup Status:Inactive Icebox issues not updated for a specific long time
Projects
None yet
Development

No branches or pull requests

5 participants