Added extra check for valid arguments in upgrade.#1874
Added extra check for valid arguments in upgrade.#1874JohnMcPMS merged 3 commits intomicrosoft:masterfrom
upgrade.#1874Conversation
|
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 ( |
florelis
left a comment
There was a problem hiding this comment.
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-agreementsfor example) don't cause a empty package search to run.Tested: manually.
Microsoft Reviewers: Open in CodeFlow