change url to archive mirror

This commit is contained in:
stCarolas committed 2020-02-03 13:46:22 +03:00
1 parent fbb2b0cc60
commit 66602c7280
690 files changed
+1017813 -2

No files matched your search

+8
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);
};