mirror of
https://github.com/Wessel/larg.git
synced 2026-07-28 03:02:25 +02:00
Another fix
This commit is contained in:
4
larg.js
4
larg.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user