@donmccurdy/caporal
Version:
A full-featured framework for building command line applications (cli) with node.js
14 lines (13 loc) • 372 B
TypeScript
/**
* @packageDocumentation
* @internal
*/
import type { Command } from "../command/index.js";
import type { Option } from "../types.js";
/**
* Find an option from its name for a given command
*
* @param cmd Command object
* @param name Option name, short or long, camel-cased
*/
export declare function findOption(cmd: Command, name: string): Option | undefined;