Does anybody have a nice way of implementing named parameters passed to runscript?
I don’t want to have to worry about the ordering of the parameters I pass or if all the parameters aren’t there (hence throwing off the numbering).
Say I have three parameters to pass to runscript: testhost_name, os_name, os_version.
runscript MyScript -params MyHost XP 32
But I would rather be able to name the parameters, iow, have ‘the parameterList’ act as a propertyList, something like this:
runscript MyScript -params testhost_name:MyHost os_name:XP os_version:32
The only idea I’ve come up with is to have the odd parameters be ‘keys’ and the even parameters be ‘values’. This is prone to all kinds of sadness.
Any other ideas?