On this page
@std/cli
Overview Jump to heading
Tools for creating interactive command line tools.
import { parseArgs } from "@std/cli/parse-args";
import { assertEquals } from "@std/assert";
// Same as running `deno run example.ts --foo --bar=baz ./quux.txt`
const args = parseArgs(["--foo", "--bar=baz", "./quux.txt"]);
assertEquals(args, { foo: true, bar: "baz", _: ["./quux.txt"] });
Add to your project Jump to heading
deno add jsr:@std/cli