Another fix

This commit is contained in:
Wessel T
2019-02-19 17:19:12 +01:00
parent 4003f261ec
commit e3ff5bc0b5
2 changed files with 3 additions and 3 deletions

View File

@@ -15,9 +15,9 @@ module.exports = (args) => {
const r = args[_].charAt(0) === '-' && args.length - 1 >= _ + 1 && args[_ + 1].indexOf('=') === -1 && args[_ + 1].charAt(0) !== '-';
const n = e === -1 ? rHyphens(args[_]) : rHyphens(args[_].slice(0, e));
if ( e !== -1 ) p[ n ] = cApplicable( args[ i ].slice(e + 1));
if (e !== -1) p[n] = cApplicable(args[_].slice(e + 1));
else if (r) {
p[n] = cApplicable(args[_ + 1] );
p[n] = cApplicable(args[_ + 1]);
_++;
} else if (args[_].charAt(0) === '-') {
if (args[_].charAt(1) === '-' ) p[n] = true;