This commit is contained in:
Stephen Franceschelli 2019-07-30 13:16:01 -04:00
parent 7fe1ba03a3
commit ec0a863019
7020 changed files with 1880198 additions and 489 deletions

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

@ -0,0 +1,8 @@
'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);
};