interface InputToken

A positional target: a file, folder, or glob (possibly with a #34 line suffix).

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

const input: Args.InputToken = { kind: 'input', raw: 'test/cart-test.ts#34' };
input.raw; // 'test/cart-test.ts#34' — the parser splits the #line suffix later

Properties

kind: "input"

Discriminant.

raw: string

The exact argv entry.

Usage

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