mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2024-12-22 13:30:38 +00:00
13 lines
275 B
JavaScript
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;
|