From 2291a898c35cf950c74c2ca9f046e079f441ea81 Mon Sep 17 00:00:00 2001 From: Sergey Vasin Date: Thu, 27 Sep 2018 13:59:10 +0300 Subject: [PATCH] Add 'TimeToLive' and 'Hops' aliases to MaxHops parameter of Test-Connection cmdlet. (#7850) Add the following aliases to MaxHops parameter of Test-Connection cmdlet: - TimeToLive It is the similar parameter's name from Windows PowerShell Test-Connection cmdlet . - Hops Similar parameter's name from Test-NetConnection cmdlet. --- .../commands/management/TestConnectionCommand.cs | 4 ++-- .../Microsoft.PowerShell.Commands.Utility.csproj | 2 +- .../Microsoft.PowerShell.MarkdownRender.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs index dee14db714..279a8f9f0b 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs @@ -85,14 +85,14 @@ namespace Microsoft.PowerShell.Commands /// /// The number of times the Ping data packets can be forwarded by routers. /// As gateways and routers transmit packets through a network, - /// they decrement the CurrentMTUSize Time-to-Live (TTL) value found in the packet header. + /// they decrement the Time-to-Live (TTL) value found in the packet header. /// The default (from Windows) is 128 hops. /// [Parameter(ParameterSetName = ParameterSetPingCount)] [Parameter(ParameterSetName = ParameterSetPingContinues)] [Parameter(ParameterSetName = ParameterSetTraceRoute)] [ValidateRange(0, sMaxHops)] - [Alias("Ttl")] + [Alias("Ttl", "TimeToLive", "Hops")] public int MaxHops { get; set; } = sMaxHops; private const int sMaxHops = 128; diff --git a/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj b/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj index 802f23711a..16f8139e15 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj +++ b/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj @@ -67,7 +67,7 @@ - + diff --git a/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj b/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj index 52ecd752c2..975e775782 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj +++ b/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj @@ -9,7 +9,7 @@ - +