mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add the missing alias LP to -LiteralPath for some cmdlets (#20820)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user