Skip to content

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

Closed

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>

Activity

  1. added a commit that references this issue on Aug 26, 2019
    0ac3ae8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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