"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.shouldUseConfigFile=shouldUseConfigFile;const child_process=require("child_process");let curArgMaxValue=0;function getMacArgMaxValue(){if(curArgMaxValue)return curArgMaxValue;try{curArgMaxValue=Number(child_process.execSync("getconf ARG_MAX").toString())}catch(e){console.error("getMacArgMaxValue error",e)}return curArgMaxValue}function shouldUseConfigFile(e){if("darwin"!==process.platform){if(e.length>128)return!0;for(const r of e)if(r.length>1e4)return!0}if("darwin"===process.platform){let r=0;for(const o of e)r+=o.length;if(getMacArgMaxValue()<r)return!0}return!1}