UNPKG

showdown-calc-cli

Version:

Quick and easy pokemon damage calulations in your terminal

15 lines (10 loc) 432 B
#!/usr/bin/env node import { Command } from "commander"; import { damageCalc } from './handlers'; const program = new 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 => damageCalc(answers, program)); program.parse(process.argv);