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 why test reports missing argument when only path provided #6218

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

zivkan
Copy link
Member

@zivkan zivkan commented Jan 10, 2025

Bug

Fixes: NuGet/Home#14030

Description

When dotnet nuget why only gets a single argument, check if the argument matches a file or directory name, and if so, use it as the path, rather than a package id. This allows System.CommandLine to correctly output a "required argument missing" error.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. n/a

@zivkan zivkan requested a review from a team as a code owner January 10, 2025 06:15
@zivkan zivkan changed the title Fix dotnet nuget why test when only path provided dotnet nuget why test reports missing argument when only path provided Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dotnet nuget why does not give an error if only a project path was specified
1 participant