]> git.ardis.lu - random-word-generator/commitdiff
Update dependency
authorArdis Lu <ardisglu@gmail.com>
Sun, 3 Dec 2023 07:12:58 +0000 (23:12 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sun, 3 Dec 2023 07:12:58 +0000 (23:12 -0800)
std/flags is deprecated, use std/cli instead

main.ts

diff --git a/main.ts b/main.ts
index da3ca330104d3b03803ddccbf7085c8721ada633..e7619034dfc8e9df75dad7094b99c3ce141b771f 100644 (file)
--- 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": "-",
This page took 0.043651 seconds and 4 git commands to generate.