UNPKG

@jil/args

Version:

A convention based argument parsing and formatting library, with strict validation checks

8 lines (7 loc) 355 B
import { CommandChecker } from '../types'; /** * Check that an argument is a command by looping through a list of available * commands, or running a command checking function. If an exact match, * or looks like a sub-command ("cmd:sub") return true. */ export declare function isCommand(arg: string, commandCheck: CommandChecker | string[]): boolean;