commandzen
Version:
A command-line argument parsing library that allows for quick and easy parsing of command-line arguments.
13 lines (12 loc) • 346 B
TypeScript
import { Command } from "./Command";
type CommandResult = {
command: Command;
options: Record<string, string | boolean>;
};
export declare class CommandParser {
private constructor();
static parse(command: Command, argv: string[]): CommandResult;
private static handleSubcommand;
private static handleOption;
}
export {};