This is an example of how to do script parameter parsing in PowerShell:
switch ($args) { 'salesforceservice' { $deploy_service = $true } 'web' { $deploy_web = $true } default { "Bad parameter: " + $_ ShowHelp exit } }
Pretty neat, huh?
/Emil
Technobabble from a .Net developer on the loose…
This is an example of how to do script parameter parsing in PowerShell:
switch ($args) { 'salesforceservice' { $deploy_service = $true } 'web' { $deploy_web = $true } default { "Bad parameter: " + $_ ShowHelp exit } }
Pretty neat, huh?
/Emil