@rr0/cms
Version:
RR0 Content Management System (CMS)
16 lines (15 loc) • 439 B
TypeScript
export declare class CLI {
protected argv: string[];
protected prefix: string;
/**
* Set up a CLI args parser.
*
* @param argv The args array.
* @param prefix The prefix to detect args ("-" by default)
*/
constructor(argv?: string[], prefix?: string);
/**
* @return {Record} A record of args values for each "-arg" key.
*/
getArgs<T = Record<string, (string | string[])>>(): T;
}