bdukes / PowerShellModules

A collection of PowerShell modules
Apache License 2.0
44 stars 9 forks source link

Making -caption parameter non-mandatory in Read-Choice #21

Open kevinholtkamp opened 1 year ago

kevinholtkamp commented 1 year ago

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.