UNPKG

@jil/args

Version:

A convention based argument parsing and formatting library, with strict validation checks

13 lines (12 loc) 404 B
import { LongOptionName, OptionConfig, ValueType } from './types'; export declare class Scope { config: OptionConfig; name: LongOptionName; negated: boolean; unknown: boolean; value?: string[] | string; constructor(name: LongOptionName, config?: OptionConfig); get flag(): boolean; get finalValue(): ValueType; captureValue(value: string, commit: () => void): void; }