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.
This commit is contained in:
Sergey Vasin
2018-09-27 15:59:10 +05:00
committed by Ilya
parent 0cce2ae44e
commit 2291a898c3
3 changed files with 4 additions and 4 deletions
@@ -85,14 +85,14 @@ namespace Microsoft.PowerShell.Commands
/// <summary>
/// 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.
/// </summary>
[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;
@@ -67,7 +67,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.9.0" />
<PackageReference Include="NJsonSchema" Version="9.10.75" />
<PackageReference Include="NJsonSchema" Version="9.11.0" />
</ItemGroup>
</Project>
@@ -9,7 +9,7 @@
<ItemGroup>
<!-- Source: https://github.com/lunet-io/markdig/ -->
<ProjectReference Include="../System.Management.Automation/System.Management.Automation.csproj" />
<PackageReference Include="Markdig.Signed" Version="0.15.2" />
<PackageReference Include="Markdig.Signed" Version="0.15.3" />
</ItemGroup>
</Project>