Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-Content -Head and -Tail disallow negative values and cleanup #19715

Merged
merged 15 commits into from
Jun 21, 2023
Prev Previous commit
Next Next commit
Add comment Tail
  • Loading branch information
CarloToso committed May 24, 2023
commit 055da9fe05653f7071b3483bdc28b07cb1260e01
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class GetContentCommand : ContentCommandBase

/// <summary>
/// The number of content items to retrieve from the back of the file.
/// By default this value is -1 which means read all the content.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true)]
[ValidateRange(0, int.MaxValue)]
Expand Down