1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00
RomPatcher.js/index.js
2023-06-29 11:29:54 -06:00

12 lines
No EOL
442 B
JavaScript

#! /usr/bin/env node
const { program } = require('commander')
const {applyPatch} = require('./js/cmd')
program
.command('patch')
.description('List all the TODO tasks')
.argument('<file>', 'the patch to apply')
.argument('<file>','the rom file getting the patch')
.option('-v, --validate-checksum','should validate checksum')
.action((patch, romFile, options) => applyPatch(romFile, patch, options));
program.parse()