Skip to content

Commit a30f51d

Browse files
committed
Update PSModuleDevelopment/functions/utility/Show-PSMDSyntax.ps1
1 parent 483ae03 commit a30f51d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

PSModuleDevelopment/functions/utility/Show-PSMDSyntax.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
1515
If there is parameter value present, you have to use the opposite quote strategy to encapsulate the string correctly
1616
17-
E.g. -CommandText 'Import-D365Bacpac -ImportModeTier2 -SqlUser "sqladmin" -SqlPwd "XyzXyz" -BacpacFile2 "C:\temp\uat.bacpac"'
18-
E.g. -CommandText "Emport-D365Bacpac -ExportModeTier2 -SqlUser 'sqladmin' -SqlPwd 'XyzXyz' -BacpacFile2 'C:\temp\uat.bacpac'"
17+
E.g. for double quotes
18+
-CommandText 'Import-D365Bacpac -ImportModeTier2 -SqlUser "sqladmin" -SqlPwd "XyzXyz" -BacpacFile2 "C:\temp\uat.bacpac"'
19+
20+
E.g. for single quotes
21+
-CommandText "Import-D365Bacpac -ExportModeTier2 -SqlUser 'sqladmin' -SqlPwd 'XyzXyz' -BacpacFile2 'C:\temp\uat.bacpac'"
1922
2023
.PARAMETER Mode
2124
The operation mode of the cmdlet / function
@@ -31,14 +34,16 @@
3134
PS C:\> Show-PSMDSyntax -CommandText 'Import-D365Bacpac -ImportModeTier2 -SqlUser "sqladmin" -SqlPwd "XyzXyz" -BacpacFile2 "C:\temp\uat.bacpac"' -Mode "Validate"
3235
3336
This will validate all the parameters that have been passed to the Import-D365Bacpac cmdlet.
37+
All supplied parameters that matches a parameter will be marked with an asterisk.
3438
3539
.EXAMPLE
3640
PS C:\> Show-PSMDSyntax -CommandText 'Import-D365Bacpac' -Mode "ShowParameters"
3741
38-
This will validate all the parameters that have been passed to the Import-D365Bacpac cmdlet.
42+
This will display all the parameter sets and their individual parameters.
3943
4044
.NOTES
4145
Author: Mötz Jensen (@Splaxi)
46+
4247
#>
4348
[CmdletBinding()]
4449

0 commit comments

Comments
 (0)