Pester icon indicating copy to clipboard operation
Pester copied to clipboard

Legacy parameters should be hidden when the user tab cycles parameters

Open KevinMarquette opened this issue 5 years ago • 2 comments

1. General summary of the issue

Several legacy parameters were reintroduced in Pester 5.0.1 to alleviate some migration pains. They still show up when you tab cycle the parameters. These should be suppressed so people can easily discover the correct tags to use from the shell.

5. Possible Solution

Adding [parameter(DontShow)] to the parameter will auto exclude it from tab complete.

6. Context

The easy way should be the right way. I feel this helps the user discover the right parameters much easier.

KevinMarquette avatar May 29 '20 18:05 KevinMarquette

Adding for re-visit to a later milestone.

nohwnd avatar Jun 01 '20 06:06 nohwnd

DontShow requires PowerShell v4 or later. Will have to wait until we drop PSv3 support

fflaten avatar Mar 23 '23 19:03 fflaten