Add the missing alias LP to -LiteralPath for some cmdlets (#20820)

This commit is contained in:
ImportTaste
2023-12-05 16:32:10 -08:00
committed by GitHub
parent 8957850abd
commit 18a2679e4e
3 changed files with 4 additions and 4 deletions
@@ -662,7 +662,7 @@ namespace Microsoft.PowerShell.Commands
/// security descriptor. Default is the current location.
/// </summary>
[Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByLiteralPath")]
[Alias("PSPath")]
[Alias("PSPath", "LP")]
[ValidateNotNullOrEmpty]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] LiteralPath
@@ -929,7 +929,7 @@ namespace Microsoft.PowerShell.Commands
/// security descriptor.
/// </summary>
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByLiteralPath")]
[Alias("PSPath")]
[Alias("PSPath", "LP")]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] LiteralPath
{
@@ -44,7 +44,7 @@ namespace Microsoft.PowerShell.Commands
/// certificate.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, ParameterSetName = "ByLiteralPath")]
[Alias("PSPath")]
[Alias("PSPath", "LP")]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] LiteralPath
{
@@ -44,7 +44,7 @@ namespace Microsoft.PowerShell.Commands
/// digital signature.
/// </summary>
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByLiteralPath")]
[Alias("PSPath")]
[Alias("PSPath", "LP")]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] LiteralPath
{