@sudoo/coco
Version:
:ocean: A simple command line tool framework
23 lines (22 loc) • 632 B
TypeScript
export declare class Option {
static create(...keys: string[]): Option;
private _name;
private _description;
private _isBoolean;
private _isOptional;
private readonly _keys;
private constructor();
get isBoolean(): boolean;
get isValue(): boolean;
get isOptional(): boolean;
get isRequired(): boolean;
get description(): string;
get name(): string;
boolean(): this;
optional(): this;
required(): this;
alias(key: string, ...keys: string[]): this;
setName(name: string): this;
setDescription(description: string): this;
match(target: string): boolean;
}