argparse-ts
Version:
Modern CLI arguments parser for node.js
11 lines • 384 B
JavaScript
import { StopException } from "../exceptions";
export function helpAction(_, _1, parser) {
console.log(parser.help);
throw new StopException();
}
export function versionAction(_, _1, parser) {
var _a;
console.log((_a = parser.config.version) !== null && _a !== void 0 ? _a : 'No version specified');
throw new StopException();
}
//# sourceMappingURL=actions.js.map