Hi,
I am using switch parameters in my Powershell script in this fashion.
param(
[switch] $Word,
[switch] $Excel,
[switch] $powerpoint,
[switch] $v2007,
[switch] $v2010,
[switch] $x86,
[switch] $x64,
)
I am trying to figure out any neat way to have it more enum style. As anyone might guess, I would want the user to choose between word, excel and powerpoint. And between x2007 and v2010.
Is there a neat way to get input params enum style?
I am new to powershell. So if this sounds like that I don't know something obvious, then please point me to some link where I can read about it.
Thanks for the help.