Example 2 of Install-ChocolateyPowerShellCommand has a duplicated parameter
- Dominant language
- MDX
- Stars
- 223
- Forks
- 248
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 4
Description
### What You Are Seeing?
On [this page](https://docs.chocolatey.org/en-us/create/functions/install-chocolateypowershellcommand#examples), Example 2 contains `PSFileFullPath` twice. This will actually result in a parsing error from PowerShell:
```powershell
PS> Get-ChildItem -Recurse -Recurse
Get-ChildItem : Cannot bind parameter because parameter 'Recurse' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter
value1,value2,value3".
At line:1 char:24
+ Get-ChildItem -Recurse -Recurse
+ ~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
+ FullyQualifiedErrorId : ParameterAlreadyBound,Microsoft.PowerShell.Commands.GetChildItemCommand
```
### What is Expected?
The example should work without parsin error.
### How Did You Get This To Happen? (Steps to Reproduce)
N/A
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.