Removed ValueFromPipeline from the Path param.

That parameter attribute doesn't make sense in this context.
This commit is contained in:
bitform
2013-01-19 16:01:01 -05:00
parent 591c063776
commit 3eb838eb1e
+2 -2
View File
@@ -71,12 +71,12 @@ http://www.exploit-monday.com
#>
[CmdletBinding( DefaultParameterSetName = 'FilePath')] Param (
[Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )]
[Parameter(Position = 0, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )]
[ValidateNotNullOrEmpty()]
[ScriptBlock]
$ScriptBlock,
[Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'FilePath' )]
[Parameter(Position = 0, ParameterSetName = 'FilePath' )]
[ValidateNotNullOrEmpty()]
[String]
$Path,