UNPKG

fargv

Version:

Multi-customizable parser of process.argv for nodejs.

15 lines (8 loc) 285 B
const staticSetNoParse = function(state, isNoParseNoDefault) { if(typeof state != "boolean") return this; const typeNoParse = "isNoParseNoDefault" ? "noParseNoDefault" : "noParse"; return this.options({ [typeNoParse]: state }); }; module.exports = staticSetNoParse;