Skip to content

Commit 1d1ef5d

Browse files
marcinsmialeksdwheeler
authored andcommitted
Fix ArgumentCompleter attribute example (#4802)
* Fix ArgumentCompleter attribute example Add missing $parameterName argument * Remove locale header about_Functions_Advanced_Parameters.md contained explicit locale header, which is autogenerated by Docs * Fixes #4648 - ternary operator (#4800) * Fixes #4648 - ternary operator * fix line wrap * restore locale * applying change to v5.0/5.1/7
1 parent 734f159 commit 1d1ef5d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

reference/5.0/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ The syntax is as follows:
753753
Param(
754754
[Parameter(Mandatory)]
755755
[ArgumentCompleter({
756-
param ($commandName, $wordToComplete, $commandAst, $fakeBoundParameter)
756+
param ($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)
757757
# Perform calculation of tab completed values here.
758758
})]
759759
)

reference/5.1/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ The syntax is as follows:
788788
Param(
789789
[Parameter(Mandatory)]
790790
[ArgumentCompleter({
791-
param ($commandName, $wordToComplete, $commandAst, $fakeBoundParameter)
791+
param ($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)
792792
# Perform calculation of tab completed values here.
793793
})]
794794
)

reference/6/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ The syntax is as follows:
834834
Param(
835835
[Parameter(Mandatory)]
836836
[ArgumentCompleter({
837-
param ($commandName, $wordToComplete, $commandAst, $fakeBoundParameter)
837+
param ($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)
838838
# Perform calculation of tab completed values here.
839839
})]
840840
)

reference/7/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ The syntax is as follows:
834834
Param(
835835
[Parameter(Mandatory)]
836836
[ArgumentCompleter({
837-
param ($commandName, $wordToComplete, $commandAst, $fakeBoundParameter)
837+
param ($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)
838838
# Perform calculation of tab completed values here.
839839
})]
840840
)

0 commit comments

Comments
 (0)