"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const os_1 = require("os");
const util_1 = require("../lib/util");
const hook = async function (options) {
    if (['-v', '-V', '--version', 'version'].includes(options.id || '')) {
        if (options.argv.includes('--short')) {
            const { version } = util_1.getPackageInfo();
            process.stdout.write(`${version}${os_1.EOL}`);
            return process.exit(0);
        }
    }
};
exports.default = hook;
//# sourceMappingURL=init.js.map