Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- param (
- $p1,
- [String]$Input_1
- )
- function test {
- $args
- foreach($arg in $args) {
- switch($arg) {
- '-h' { 'I got: -h' }
- '--help' { 'I got: --help' }
- default { "I got something: $arg" }
- }
- }
- }
- test($p1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement