#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
process.title = 'homebridge-config-ui-x';
const os_1 = require("os");
const path_1 = require("path");
const commander_1 = require("commander");
commander_1.program
    .allowUnknownOption()
    .option('-U, --user-storage-path [path]', '', (p) => process.env.UIX_STORAGE_PATH = p)
    .option('-P, --plugin-path [path]', '', (p) => process.env.UIX_CUSTOM_PLUGIN_PATH = p)
    .option('-I, --insecure', '', () => process.env.UIX_INSECURE_MODE = '1')
    .option('-T, --no-timestamp', '', () => process.env.UIX_LOG_NO_TIMESTAMPS = '1')
    .parse(process.argv);
if (!process.env.UIX_STORAGE_PATH) {
    process.env.UIX_STORAGE_PATH = (0, path_1.resolve)((0, os_1.homedir)(), '.homebridge');
}
process.env.UIX_CONFIG_PATH = (0, path_1.resolve)(process.env.UIX_STORAGE_PATH, 'config.json');
Promise.resolve().then(() => require('../main'));
//# sourceMappingURL=standalone.js.map