igir
Version:
🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.
20 lines (19 loc) • 605 B
TypeScript
import Logger from '../console/logger.js';
import Options from '../types/options.js';
/**
* Parse a {@link process.argv} (without its first two arguments, the Node.js executable and the
* script name) and return a validated {@link Options} object.
*
* This class will not be run concurrently with any other class.
*/
export default class ArgumentsParser {
private readonly logger;
constructor(logger: Logger);
private static getLastValue;
private static readRegexFile;
private static getHelpWidth;
/**
* Parse the arguments.
*/
parse(argv: string[]): Options;
}