GoScrobble/web/node_modules/yargs/build/lib/parse-command.d.ts

12 lines
309 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import { NotEmptyArray } from './common-types';
export declare function parseCommand(cmd: string): ParsedCommand;
export interface ParsedCommand {
cmd: string;
demanded: Positional[];
optional: Positional[];
}
export interface Positional {
cmd: NotEmptyArray<string>;
variadic: boolean;
}