1
0

Section 20

This commit is contained in:
Jason Williams
2019-08-11 12:15:16 -06:00
commit 6528d7204a
431 changed files with 32548 additions and 0 deletions

8
notes-app/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);
};