Comparing version 2.0.0 to 2.0.1
28
index.js
@@ -17,5 +17,5 @@ const SHORTSPLIT = /$|[!-@\[-`{-~].*/g | ||
for (var j = 0; j < len; j++) { | ||
if (i !== j) { | ||
curr.push(alias[j]) | ||
for (var k = 0; k < len; k++) { | ||
if (i !== k) { | ||
curr.push(alias[k]) | ||
} | ||
@@ -42,4 +42,4 @@ } | ||
} else { | ||
for (var j = 0, end = alias.length; j < end; j++) { | ||
out[alias[j]] = true | ||
for (var k = 0, end = alias.length; k < end; k++) { | ||
out[alias[k]] = true | ||
} | ||
@@ -107,3 +107,3 @@ } | ||
for (var i = 0, j = 0, len = argv.length, _ = out._; i < len; i++) { | ||
for (var i = 0, k = 0, len = argv.length, _ = out._; i < len; i++) { | ||
var arg = argv[i] | ||
@@ -131,6 +131,6 @@ | ||
key, | ||
len === (j = i + 1) || | ||
argv[j][0] === "-" || | ||
len === (k = i + 1) || | ||
argv[k][0] === "-" || | ||
bools[key] !== undefined || | ||
argv[(i = j)], | ||
argv[(i = k)], | ||
alias, | ||
@@ -147,9 +147,9 @@ unknown | ||
match[0] || | ||
len === (j = i + 1) || | ||
argv[j][0] === "-" || | ||
len === (k = i + 1) || | ||
argv[k][0] === "-" || | ||
bools[arg[end - 1]] !== undefined || | ||
argv[(i = j)] | ||
argv[(i = k)] | ||
for (j = 1; j < end; ) { | ||
set(out, arg[j], ++j !== end || value, alias, unknown) | ||
for (k = 1; k < end; ) { | ||
set(out, arg[k], ++k !== end || value, alias, unknown) | ||
} | ||
@@ -156,0 +156,0 @@ } |
@@ -1,2 +0,2 @@ | ||
Copyright © 2015-present [Jorge Bucaran](https://github.com/JorgeBucaran) | ||
Copyright © 2015-present [Jorge Bucaran](https://github.com/jorgebucaran) | ||
@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "getopts", | ||
"description": "Node.js CLI options parser.", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"repository": "getopts/getopts", | ||
"repository": "jorgebucaran/getopts", | ||
"author": "Jorge Bucaran", | ||
"files": ["index.js"], | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
@@ -21,5 +23,5 @@ "cli", | ||
"devDependencies": { | ||
"nyc": "^11.2.1", | ||
"nyc": "^11.4.1", | ||
"tape": "^4.8.0" | ||
} | ||
} |
# Getopts | ||
[![Travis CI](https://img.shields.io/travis/JorgeBucaran/getopts/master.svg)](https://travis-ci.org/JorgeBucaran/getopts) | ||
[![Codecov](https://img.shields.io/codecov/c/github/JorgeBucaran/getopts/master.svg)](https://codecov.io/gh/JorgeBucaran/getopts) | ||
[![Travis CI](https://img.shields.io/travis/jorgebucaran/getopts/master.svg)](https://travis-ci.org/jorgebucaran/getopts) | ||
[![Codecov](https://img.shields.io/codecov/c/github/jorgebucaran/getopts/master.svg)](https://codecov.io/gh/jorgebucaran/getopts) | ||
[![npm](https://img.shields.io/npm/v/getopts.svg)](https://www.npmjs.org/package/getopts) | ||
@@ -5,0 +5,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8039