argvex
Version:
Lightweight and unopinionated CLI argument parser — just a parsing tool, not a framework
22 lines • 518 B
TypeScript
export declare class ArgvexError extends Error {
constructor(argument: string);
}
export type ArgvexSchema = ({
name: string;
alias?: string;
arity?: number;
})[];
export type ArgvexOptions = {
command?: string;
argv?: string[];
schema?: ArgvexSchema;
strict?: boolean;
additive?: boolean;
};
export type argvex = {
_: string[];
[flag: string]: string[];
};
declare const argvex: (options: ArgvexOptions) => argvex;
export default argvex;
//# sourceMappingURL=index.d.ts.map