'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); };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
index.js | File | 320 B | 0644 |
|
license | File | 1.08 KB | 0644 |
|
package.json | File | 1.62 KB | 0644 |
|
readme.md | File | 986 B | 0644 |
|