#!/usr/bin/env node
"use strict";
/*
 * SomonScript CLI Entry Point with Localization Support
 * Copyright (c) 2025 LindenTech IT Consulting
 *
 * Licensed under the MIT License. See the LICENSE file for details.
 */
Object.defineProperty(exports, "__esModule", { value: true });
const localized_program_1 = require("./cli/localized-program");
const i18n_1 = require("./cli/i18n");
// Detect language from arguments before creating program
const langIndex = process.argv.indexOf('--lang');
if (langIndex !== -1 && process.argv[langIndex + 1]) {
    const lang = process.argv[langIndex + 1];
    if (lang === 'tj' || lang === 'ru' || lang === 'en') {
        i18n_1.i18n.setLanguage(lang);
    }
}
const program = (0, localized_program_1.getLocalizedProgram)();
program.parse(process.argv);
//# sourceMappingURL=cli.js.map