mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
14 lines
353 B
TypeScript
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());
|
|
}
|