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
Thursday, February 12, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment