Metadata for a parsed argument

interface ArgumentMeta {
    none: boolean;
    raw: string;
    type: string;
    unit: string;
    unitless: number;
}

Properties

none: boolean

Whether the argument is "none"

raw: string

The raw argument string

type: string

The type of the argument, e.g. "", "", ""

unit: string

The unit of the argument, if present e.g. "%", "deg"

unitless: number

The number value of the argument, for arguments that have a unit