interface FlagToken

Any other flag (--watch, --timeout=5000, -o, …), passed through verbatim.

import * as Args from './index.ts';

const flag: Args.FlagToken = { kind: 'flag', raw: '--timeout=5000' };
flag.raw; // '--timeout=5000' — dashes and the glued =value stay intact

Properties

kind: "flag"

Discriminant.

raw: string

The exact argv entry, including leading dashes and any =value.

Usage

import { type FlagToken } from "lib/args/tokenize.ts";