diff --git a/lib/getopt.ps1 b/lib/getopt.ps1 index 2f6ef3df15..0b04314f10 100644 --- a/lib/getopt.ps1 +++ b/lib/getopt.ps1 @@ -25,6 +25,7 @@ function getopt($argv, $shortopts, $longopts) { for($i = 0; $i -lt $argv.length; $i++) { $arg = $argv[$i] + if($null -eq $arg) { continue } # don't try to parse array arguments if($arg -is [array]) { $rem += ,$arg; continue } if($arg -is [int]) { $rem += $arg; continue }