aboutsummaryrefslogtreecommitdiff
path: root/node_modules/has-flag/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/has-flag/index.js')
-rw-r--r--node_modules/has-flag/index.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/node_modules/has-flag/index.js b/node_modules/has-flag/index.js
deleted file mode 100644
index 5139728..0000000
--- a/node_modules/has-flag/index.js
+++ /dev/null
@@ -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);
-};