Skip to content

Commit

Permalink
getopt: don't try to parse int arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesampson committed Sep 6, 2013
1 parent 9b6e7b5 commit 23fe5a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/getopt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function getopt($argv, $shortopts, $longopts) {
$arg = $argv[$i]
# don't try to parse array arguments
if($arg -is [array]) { $rem += ,$arg; continue }
if($arg -is [int]) { $rem += $arg; continue }

if($arg.startswith('--')) {
$name = $arg.substring(2)
Expand Down

0 comments on commit 23fe5a5

Please sign in to comment.