#!/usr/bin/env node
import { program } from 'commander';
import { path } from '../path.js';
import { scanner } from './scanner/index.js';
program.name('i18n-scan')
    .option('-r, --rootdir [rootdir]', '根目录：默认为当前工作目录', path.normalize(process.cwd()).fpd)
    .option('-o, --output [output]', 'i18n 目录：默认为 <rootdir>/i18n/')
    .parse(process.argv);
const { rootdir, output } = program.opts();
await scanner(rootdir, output ? { output } : undefined);
//# sourceMappingURL=i18n-scan.js.map