Skip to content

Commit 23fe5a5

Browse files
committed
getopt: don't try to parse int arguments
1 parent 9b6e7b5 commit 23fe5a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/getopt.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function getopt($argv, $shortopts, $longopts) {
2323
$arg = $argv[$i]
2424
# don't try to parse array arguments
2525
if($arg -is [array]) { $rem += ,$arg; continue }
26+
if($arg -is [int]) { $rem += $arg; continue }
2627

2728
if($arg.startswith('--')) {
2829
$name = $arg.substring(2)

0 commit comments

Comments
 (0)