mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-04 20:30:41 +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;
|