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

Example 2 of Install-ChocolateyPowerShellCommand has a duplicated parameter #861

Open
corbob opened this issue Oct 23, 2023 · 0 comments
Open

Comments

@corbob
Copy link
Member

corbob commented Oct 23, 2023

What You Are Seeing?

On this page, Example 2 contains PSFileFullPath twice. This will actually result in a parsing error from 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

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

No branches or pull requests

1 participant