UNPKG

commandzen

Version:

A command-line argument parsing library that allows for quick and easy parsing of command-line arguments.

12 lines (11 loc) 238 B
export class CommandRunner { constructor() { } static run(command, options) { if (options.help) { command.help(); process.exit(0); } command.emit(command.name, options); } }