-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Added extra check for valid arguments in upgrade
.
#1874
Conversation
I was also working on some extra checks for arguments to (BTW, I love your branch names :)) |
There isn't direct overlap (since this PR adds a check for no query and no list parameters). However, it could be simplified by having those functions present I think. ( Do you want me to throw this in a draft, or do you want to add it to your PR? |
I'm not sure how soon I'll complete that PR so I think we could get this change in first. You can grab my changes to the validation to simplify this check if you want, or I'll do it later when dealing with the merge conflicts. Up to you. |
I merged the bulk of your validation changes ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but I'll wait for somebody else to approve it since you used some of my changes.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Resolves #1869.
This PR adds a extra validation for arguments in
winget upgrade
, making sure that arguments that require a package search (--accept-package-agreements
for example) don't cause a empty package search to run.Tested: manually.
Microsoft Reviewers: Open in CodeFlow