Skip to content

Commit c0bea50

Browse files
author
James Brundage
committed
Adding -Position to [VBN] (#57)
1 parent ef99597 commit c0bea50

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Transpilers/Parameters/VBN.psx.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ $Mandatory,
1515

1616
[Alias('VFP')]
1717
[switch]
18-
$ValueFromPipeline
18+
$ValueFromPipeline,
19+
20+
# The position of the parameter.
21+
[int]
22+
$Position
1923
)
2024

2125
$paramOptions = @(
@@ -24,7 +28,7 @@ $paramOptions = @(
2428
}
2529
if ($ParameterSet) {
2630
"ParameterSetName='$($ParameterSet.Replace("'","''"))'"
27-
}
31+
}
2832
"ValueFromPipelineByPropertyName"
2933
if ($ValueFromPipeline) {
3034
"ValueFromPipeline"

0 commit comments

Comments
 (0)