UNPKG

573 BTypeScriptView Raw
1export interface ProcessArgsFilter {
2 (argument: string, index: number): boolean;
3}
4export declare class ProcessArgs {
5 private readonly filtered;
6 private readonly log;
7 protected constructor(args: string[], node: boolean);
8 static from(args: string[], node?: boolean): ProcessArgs;
9 readonly args: string[];
10 readonly argsOnly: string[];
11 readonly exe: string;
12 readonly normalized: string[];
13 readonly switches: string[];
14 has(...names: string[]): boolean;
15 hasOne(name: string): boolean;
16 private filter;
17 private normalize;
18}