Skip to content

Start-Sleep help showing incorrect datatype for Seconds parameter #4144

@FireInWinter

Description

@FireInWinter

Start-Sleep was recently modified to support fractional seconds (PowerShell/PowerShell#8477). The Seconds parameter is now a [double] instead of an [int], but in PowerShell 6.2 and online, help/documentation still shows it as an Int.

Also, help should be updated to show that fractions of seconds are now supported as well. I.e. Start-Sleep -Seconds 1.4

Get-Help Start-Sleep -Parameter Seconds

Returns:
-Seconds <Int32>
Expecting:
-Seconds <Double>

Metadata

Metadata

Assignees

Labels

area-utilityArea - Microsoft.PowerShell.Utility module

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions