This commit is contained in:
Stephen Franceschelli
2019-07-15 13:46:13 -04:00
parent 574f83ab4c
commit 70039febf8
7043 changed files with 0 additions and 1866383 deletions

8
node_modules/has-flag/index.js generated vendored
View File

@@ -1,8 +0,0 @@
'use strict';
module.exports = (flag, argv) => {
argv = argv || process.argv;
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
const pos = argv.indexOf(prefix + flag);
const terminatorPos = argv.indexOf('--');
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
};