rasper
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -22,6 +22,2 @@ module.exports = (args = process.argv.slice(1)) => { | ||
function exist (value) { | ||
return value ? true : false | ||
} | ||
function getValue (value, index, self) { | ||
@@ -40,3 +36,3 @@ const next = self[index + 1] | ||
if (hasDash(value) && !hasEgual(value)) { | ||
if (hasDash(next) || !exist(next)) { | ||
if (hasDash(next) || !next) { | ||
return value + '=' + 'true' | ||
@@ -43,0 +39,0 @@ } |
{ | ||
"name": "rasper", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Node.js parse argument options make ease.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://cjpatoilo.com/rasper", |
518225
85