Skip to content

Commit 18a2679

Browse files
Add the missing alias LP to -LiteralPath for some cmdlets (PowerShell#20820)
1 parent 8957850 commit 18a2679

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Microsoft.PowerShell.Security/security/AclCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ public PSObject InputObject
662662
/// security descriptor. Default is the current location.
663663
/// </summary>
664664
[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByLiteralPath")]
665-
[Alias("PSPath")]
665+
[Alias("PSPath", "LP")]
666666
[ValidateNotNullOrEmpty]
667667
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
668668
public string[] LiteralPath
@@ -929,7 +929,7 @@ public PSObject InputObject
929929
/// security descriptor.
930930
/// </summary>
931931
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByLiteralPath")]
932-
[Alias("PSPath")]
932+
[Alias("PSPath", "LP")]
933933
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
934934
public string[] LiteralPath
935935
{

src/Microsoft.PowerShell.Security/security/CertificateCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public string[] FilePath
4444
/// certificate.
4545
/// </summary>
4646
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, ParameterSetName = "ByLiteralPath")]
47-
[Alias("PSPath")]
47+
[Alias("PSPath", "LP")]
4848
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
4949
public string[] LiteralPath
5050
{

src/Microsoft.PowerShell.Security/security/SignatureCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public string[] FilePath
4444
/// digital signature.
4545
/// </summary>
4646
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByLiteralPath")]
47-
[Alias("PSPath")]
47+
[Alias("PSPath", "LP")]
4848
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
4949
public string[] LiteralPath
5050
{

0 commit comments

Comments
 (0)