UNPKG

kt-extendscript-builder

Version:

Vite based builder for transpile TypeScript to ExtendScript

26 lines (25 loc) 1.02 kB
import { BuildOptions } from '../../types'; /** * A class responsible for collecting build options from command line arguments. * It uses the yargs library to parse command line arguments based on predefined KTBuilderOptions. */ export declare class OptionsParser { /** * Parses build options from the command line arguments. * * This method: * 1. Creates a yargs instance with the process arguments (excluding the first two) * 2. Registers all KTBuilderOptions with the yargs instance * 3. Enables the help command and parses the arguments * * @returns A partial BuildOptions object containing the parsed command line options */ static parse(): Partial<BuildOptions>; /** * Extracts commands (positional arguments that don't start with - or --) from process.argv * * @returns An array with the names of the commands found */ static extractCommands(): string[]; static filter(options: Record<string, any>): Partial<BuildOptions>; }