arx-level-generator
Version:
A tool for creating Arx Fatalis maps
17 lines • 640 B
JavaScript
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