Thursday, February 12, 2009

--

halr9000 over at powershellcommunity.org mentioned that "--" is actually a special keyword that halts parameter processing for a cmdlet. e.g.

get-childitem -recurse -- -foo

This would look for files named "-foo" without throwing an error about there not being a foo parameter.

Source..




May The PoSH Be With You
Powershell Jedi

No comments: