UNPKG

argparse-ts

Version:

Modern CLI arguments parser for node.js

6 lines (5 loc) 749 B
import type { ArgType, NArgs, ArgConfig, ActionConfig, ArgParserConfig, ParsedArgumentsCollectionInterface, ArgsParserInterface, RouterInterface } from "./types"; import { ArgsParser, ParsedArgumentsCollection, Router } from "./classes"; import { ArgsParserException, ArgsParserError, ArgumentConfigError, ArgumentNameError, ArgumentValueError, StopException, isExceptionInstanceOf } from "./exceptions"; export type { ArgType, NArgs, ArgConfig, ActionConfig, ArgParserConfig, ParsedArgumentsCollectionInterface, ArgsParserInterface, RouterInterface, }; export { ArgsParser, ParsedArgumentsCollection, Router, ArgsParserException, ArgsParserError, ArgumentConfigError, ArgumentNameError, ArgumentValueError, StopException, isExceptionInstanceOf, };