cmd-ts
Version:
> 💻 A type-driven command line argument parser, with awesome error reporting 🤤
14 lines (13 loc) • 385 B
TypeScript
import { AstNode, LongOption, ShortOption } from './parser';
declare type Option = LongOption | ShortOption;
/**
* A utility function to find an option in the AST
*
* @param nodes AST node list
* @param opts Long and short names to look up
*/
export declare function findOption(nodes: AstNode[], opts: {
longNames: string[];
shortNames: string[];
}): Option[];
export {};