UNPKG

argparse-ts

Version:

Modern CLI arguments parser for node.js

15 lines 543 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.helpAction = helpAction; exports.versionAction = versionAction; var exceptions_1 = require("../exceptions"); function helpAction(_, _1, parser) { console.log(parser.help); throw new exceptions_1.StopException(); } function versionAction(_, _1, parser) { var _a; console.log((_a = parser.config.version) !== null && _a !== void 0 ? _a : 'No version specified'); throw new exceptions_1.StopException(); } //# sourceMappingURL=actions.js.map