12 lines
643 B
TypeScript
12 lines
643 B
TypeScript
import { ArgParser } from './argparser';
|
|
import { OutputOf } from './from';
|
|
import { ProvidesHelp, LongDoc, ShortDoc, Descriptive } from './helpdoc';
|
|
import { Type, HasType } from './type';
|
|
declare type MultiOptionConfig<Decoder extends Type<string[], any>> = HasType<Decoder> & LongDoc & Partial<ShortDoc & Descriptive>;
|
|
/**
|
|
* Like `option`, but can accept multiple options, and expects a decoder from a list of strings.
|
|
* An error will highlight all option occurences.
|
|
*/
|
|
export declare function multioption<Decoder extends Type<string[], any>>(config: MultiOptionConfig<Decoder>): ArgParser<OutputOf<Decoder>> & ProvidesHelp;
|
|
export {};
|