Sha256: dc0f89bdb136779f9ec062e0a2963a3ec89f45731eec9e8028907ae9f9e9034d
Contents?: true
Size: 320 Bytes
Versions: 182
Compression:
Stored size: 320 Bytes
Contents
'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); };
Version data entries
182 entries across 181 versions & 22 rubygems