commandzen
Version:
A command-line argument parsing library that allows for quick and easy parsing of command-line arguments.
16 lines (15 loc) • 379 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommandRunner = void 0;
class CommandRunner {
constructor() {
}
static run(command, options) {
if (options.help) {
command.help();
process.exit(0);
}
command.emit(command.name, options);
}
}
exports.CommandRunner = CommandRunner;