(Install-ChocolateyInstallPackage) Missing useOnlyPackageSilentArguments switch Validation
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
### What You Are Seeing?
@ferventcoder @gep13
The function (Install-ChocolateyInstallPackage) has the switch `useOnlyPackageSilentArguments`. This is listed only as a [Parameter description](https://github.com/chocolatey/choco/blob/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyInstallPackage.ps1#L117), and as a param [here](https://github.com/chocolatey/choco/blob/stable/src/chocolatey.resources/helpers/functions/Install-ChocolateyInstallPackage.ps1#L222). It is not _**validated**_, _**checked**_, or in _**any other way referenced**_ again in the code.
### What is Expected?
Did I miss something in how this switch is supposed to be used? The description lists _**Available in 0.9.10+.**_, but it doesn't look like it has even been fully implemented.
### How Did You Get This To Happen? (Steps to Reproduce)
I was working on what could be causing a lag response for a package, and wanted to use this switch, but it doesn't seem to be working correctly or at all.
A simple count of the variable `$useOnlyPackageSilentArguments` of **_Two_** or `$useOnlyPackageSilentArgs` of **_Once_**
### Output Log
Full Log Output
~~~sh
PLACE LOG CONTENT HERE - WE NEED _ALL_ DETAILED OUTPUT BASED ON THE ABOVE TO BE ABLE TO PROVIDE SUPPORT (YOU WILL FIND THAT IN THE $env:ChocolateyInstall\logs\chocolatey.log between the `=====`)
~~~
Contributor guide
Research direction
Start with src/chocolatey.resources/helpers/functions/Install-ChocolateyInstallPackage.ps1, especially the parameter description and function parameter block identified in the issue. Trace how the switch is handled, compare its documented behavior with the existing install flow, and verify that the completed change both validates the switch and makes its intended effect observable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100