1import { parseArgs } from "@std/cli/parse-args";23/**4 * Parse CLI arguments. Positionals stay strings: hex addresses such as `3e21` or `0123` would5 * otherwise be coerced to numbers.6 */7export function parseCliArgs(argv: string[]) {8 return parseArgs(argv, {9 string: [10 "_",11 "ttl",12 "to",13 "slot",14 "server",15 "token",16 "password",17 "name",18 "description",19 "default-ttl",20 "default-for",21 "framework",22 "output",23 "build-task",24 "title",25 "open",26 "tag",27 "root",28 "max-ttl",29 "default-password-file",30 "message",31 "callback",32 ],33 boolean: [34 "yes",35 "list",36 "help",37 "version",38 "no-password",39 "overwrite",40 "json",41 "no-description",42 "all",43 "no-default-for",44 "new",45 "require-password",46 "allow-unprotected",47 "no-default-password",48 "feedback",49 "no-feedback",50 "request",51 ],52 alias: { h: "help", V: "version", y: "yes" },53 collect: ["root"],54 });55}