UNPKG

showdown-calc-cli

Version:

Quick and easy pokemon damage calulations in your terminal

13 lines (12 loc) 539 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commander_1 = require("commander"); const handlers_1 = require("./handlers"); const program = new commander_1.Command(); program .option('-i, --interactive', 'Interactive damage calculation') .option('-r, --raw-string <input-string>', 'Calculate damage from raw input string') .option('-g, --gen <value>', 'Generation', '8') .action(answers => (0, handlers_1.damageCalc)(answers, program)); program.parse(process.argv);