clipanion
Version:
Type-safe CLI library / framework with no runtime dependencies
19 lines (18 loc) • 556 B
TypeScript
export type ProxyFlags = {
name?: string;
required?: number;
};
/**
* Used to annotate that the command wants to retrieve all trailing
* arguments that cannot be tied to a declared option.
*
* Be careful: this function is order-dependent! Make sure to define it
* after any positional argument you want to declare.
*
* This function is mutually exclusive with Option.Rest.
*
* @example
* yarn run foo hello --foo=bar world
* ► proxy = ["hello", "--foo=bar", "world"]
*/
export declare function Proxy(opts?: ProxyFlags): string[];