Sha256: e9e921d4734fee9405bef5886c010c80a8f10fe958e5d71bd5d8eed5e616e78d
Contents?: true
Size: 330 Bytes
Versions: 131
Compression:
Stored size: 330 Bytes
Contents
'use strict'; module.exports = (flag, argv = process.argv) => { const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); const position = argv.indexOf(prefix + flag); const terminatorPosition = argv.indexOf('--'); return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); };
Version data entries
131 entries across 129 versions & 12 rubygems