swc/crates/swc_bundler/tests/deno-exec/deno-9350/full-2/input/entry.ts
2022-05-04 14:25:28 +00:00

14 lines
353 B
TypeScript

import { parse } from "https://deno.land/std@0.89.0/flags/mod.ts";
import printStats from "./print_stats.ts";
import { getNumericInput, printQuestion } from "./helpers/mod.ts";
const args = parse(Deno.args);
if (args.stats) {
printStats();
} else {
printQuestion("How many times have you played");
console.log(await getNumericInput());
}