UNPKG

cac

Version:

Simple yet powerful framework for building command-line apps.

19 lines (18 loc) 439 B
interface OptionConfig { default?: any; type?: any[]; } export default class Option { rawName: string; description: string; /** Option name */ name: string; /** Option name and aliases */ names: string[]; isBoolean?: boolean; required?: boolean; config: OptionConfig; negated: boolean; constructor(rawName: string, description: string, config?: OptionConfig); } export { OptionConfig };