apple1-videocard-lib/tools/parseOptions.js
2022-01-13 13:04:55 +01:00

13 lines
275 B
JavaScript

const commandLineArgs = require('command-line-args');
function parseOptions(optionDefinitions) {
try {
return commandLineArgs(optionDefinitions);
} catch(ex) {
console.log(ex.message);
process.exit(-1);
}
}
module.exports = parseOptions;