Set Parameters to Mandatory
This commit is contained in:
@@ -11,14 +11,16 @@ function Export-ZertoVpg {
|
|||||||
[string]$outputPath,
|
[string]$outputPath,
|
||||||
[parameter(
|
[parameter(
|
||||||
HelpMessage = "Name(s) of the VPG(s) to be exported",
|
HelpMessage = "Name(s) of the VPG(s) to be exported",
|
||||||
ParameterSetName = "namedVpgs"
|
ParameterSetName = "namedVpgs",
|
||||||
|
Mandatory = $true
|
||||||
)]
|
)]
|
||||||
[string[]]$vpgName,
|
[string[]]$vpgName,
|
||||||
[parameter(
|
[parameter(
|
||||||
HelpMessage = "Export all VPGs at this site",
|
HelpMessage = "Export all VPGs at this site",
|
||||||
ParameterSetName = "allVpgs",
|
ParameterSetName = "allVpgs",
|
||||||
valuefrompipeline = $true,
|
valuefrompipeline = $true,
|
||||||
ValueFromPipelineByPropertyName = $true
|
ValueFromPipelineByPropertyName = $true,
|
||||||
|
Mandatory = $true
|
||||||
)]
|
)]
|
||||||
[switch]$allVpgs
|
[switch]$allVpgs
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user