Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. param (
  2.     $p1,
  3.     [String]$Input_1
  4. )
  5.  
  6. function test {
  7.     $args
  8.     foreach($arg in $args) {
  9.         switch($arg) {
  10.             '-h' { 'I got: -h' }
  11.             '--help' { 'I got: --help' }
  12.             default { "I got something: $arg" }
  13.         }
  14.     }
  15. }
  16.  
  17. test($p1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement