import { parseFlags } from "https://dotland.deno.dev/x/cliffy@v0.23.2/flags/flags.ts";
Parse command line arguments.
Type Parameters
optional
T extends IFlagOptions = IFlagOptionsParameters
optional
opts: IParseOptions<T> = [UNSUPPORTED]Parse options.
// example.ts -x 3 -y.z -n5 -abc --beep=boop foo bar baz --deno.land -- --cliffy
parseFlags(Deno.args);
{
flags: {
x: "3",
y: { z: true },
n: "5",
a: true,
b: true,
c: true,
beep: "boop",
deno: { land: true }
},
unknown: [ "foo", "bar", "baz" ],
literal: [ "--cliffy" ]
}