no message

This commit is contained in:
A1300399510
2024-02-18 20:19:03 +08:00
parent 11ab23f6d3
commit 50c4074182
165 changed files with 18003 additions and 13290 deletions

View File

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