UNPKG

arx-level-generator

Version:
17 lines 640 B
#!/usr/bin/env -S node --enable-source-maps import minimist from 'minimist-lite'; import { Settings } from '../Settings.js'; import { rungame } from '../bin/rungame.js'; const args = minimist(process.argv.slice(2), { boolean: ['rungame'], }); const settings = new Settings(); if (args.rungame) { const otherArgs = process.argv.slice(2).filter((param) => !param.trim().startsWith('--rungame')); await rungame(settings, otherArgs); } else { console.info('[info] cli: available commands: "--rungame"'); console.info('[info] cli: all other parameters will be passed to the arx executable'); } //# sourceMappingURL=cli.js.map