Skip to content

Commit 6ae46b3

Browse files
committed
Change warning.
1 parent 6b9b067 commit 6ae46b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Snippets/Test-Obsolete.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ function Test-Obsolete {
1818
#>
1919
[CmdletBinding()]
2020
param (
21-
# Test something
21+
# Test mode parameter.
2222
[Parameter(Mandatory)]
23-
[Obsolete("'Mode' is being replaced by the more flexible 'Scans', 'OutputType', and 'IncludeFixes' parameters, and will be removed in a future version. Use 'Get-Help Test-Obsolete -Full' for more information.")]
23+
[Obsolete("'Mode' is being replaced by a more flexible set of parameters. It will be removed in a future release.`n`nPlease use 'Get-Help Test-Obsolete' or visit <https://day3bits.com/2025-02-17-using-obsolete-parameters-in-powershell/> for more information.")]
2424
[ValidateNotNullOrEmpty()]
2525
[ValidateRange(0, 5)]
2626
[int16]

0 commit comments

Comments
 (0)