PowerShellModules icon indicating copy to clipboard operation
PowerShellModules copied to clipboard

Making -caption parameter non-mandatory in Read-Choice

Open kevinholtkamp opened this issue 2 years ago • 0 comments

For me personally, it would be enough to have one message/caption parameter, however since caption is a mandatory parameter, you cannot use an empty string. or omit it

Removing the mandatory aspect would help when using named parameters, however you would still have to supply an empty string when using positional parameters.

The solution for that would be to move the caption parameter to the end (or at least after the message parameter), however this would break backwards compatibility.

kevinholtkamp avatar Oct 02 '22 17:10 kevinholtkamp