no message

This commit is contained in:
A1300399510
2024-01-26 11:09:20 +08:00
parent bd7c792cbe
commit 2ff4926405
179 changed files with 27287 additions and 2590 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);
};