moved files

This commit is contained in:
2025-07-01 13:45:17 +02:00
parent d0f098f098
commit 5aca14159b
1085 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
'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);
};