Skip to content

Commit

Permalink
Depth should be int not uint. Adding Range Validation for it.
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Oct 19, 2024
1 parent 7151c4e commit 9da0fc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PSTree/Commands/GetPSTreeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public string[]? LiteralPath
}

[Parameter]
public uint Depth { get; set; } = 3;
[ValidateRange(0, int.MaxValue)]
public int Depth { get; set; } = 3;

[Parameter]
public SwitchParameter Recurse { get; set; }
Expand Down

0 comments on commit 9da0fc6

Please sign in to comment.