[Parameter (Mandatory=$False)]
[ValidateSet("Val1", "Val2", "Val3", "Val4", "Val5",ignorecase=$true)]
[string[]] $configs = ""
Is there a way to alter the above so that I can accept several of the enum values in one go?
I'm hoping to be able to launch the script as so:
.\MyAwesome-Script.ps1 -config Val1 Val2 (or any combination of enum values as parameters)
But I need this to also be tab complete-able (is that even a word?)
For completeness, I'm using PS 4.0 and PSCX 3.1 is also installed