@cloud-copilot/cli
Version:
A standardized library for CLI building TypeScript CLI applications
20 lines • 752 B
TypeScript
import { Argument, PerArgumentArgs } from './argument.js';
type MapResult = Record<string, string[]>;
type MapWithDefault = {
defaultValue: MapResult;
} & PerArgumentArgs;
type MapWithoutDefault = {
defaultValue?: undefined;
} & PerArgumentArgs;
/**
* Creates a map argument where the first value is the key and the rest are values.
*
* --arg-name key1 key1Value1 key1Value2 --arg-name key2 key2Value1 key2Value2
*
* @param options the description and optional default value
* @returns a map argument
*/
export declare function mapArgument(options: MapWithDefault): Argument<MapResult>;
export declare function mapArgument(options: MapWithoutDefault): Argument<MapResult | undefined>;
export {};
//# sourceMappingURL=mapArgument.d.ts.map