mirror of
https://github.com/marcrobledo/RomPatcher.js.git
synced 2025-06-27 16:25:54 +00:00
12 lines
No EOL
442 B
JavaScript
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() |