From 477eba0178ccc8dcfa56bd72b35c9d2122d0bfb0 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 2 Dec 2023 23:12:58 -0800 Subject: [PATCH] Update dependency std/flags is deprecated, use std/cli instead --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index da3ca33..e761903 100644 --- a/main.ts +++ b/main.ts @@ -1,6 +1,6 @@ -import { parse } from "https://deno.land/std@0.204.0/flags/mod.ts"; +import { parseArgs } from "https://deno.land/std@0.208.0/cli/mod.ts"; -const { words, separator, length } = parse(Deno.args, { +const { words, separator, length } = parseArgs(Deno.args, { default: { "words": "./words/xkcd.txt", "separator": "-", -- 2.47.3