UNPKG

isml-linter

Version:

ISML Linter is a tool for examining if your project's templates follow a specified set of rules defined by your dev team. The available rules can be roughly grouped into:

20 lines (16 loc) 448 B
const parseCommand = () => { const commandObject = { options : [], files : [] }; for (let i = 2; i < process.argv.length; i++) { const arg = process.argv[i]; if (arg.startsWith('--')) { commandObject.options.push(arg); } else { commandObject.files.push(arg); } } return commandObject; }; module.exports.parseCommand = parseCommand;