3 const { error } = require('./lib/helpers/log')('proton-i18n');
4 const renderHelp = require('./lib/helpers/help');
6 const argv = process.argv.slice(2);
7 const is = (command) => argv.includes(command);
9 async function main() {
10 const [, ...options] = argv;
13 await require('./lib/extract')(options[0]);
17 const flags = { isVerbose: options.includes('--verbose') };
18 const args = options.filter((val) => !val.startsWith('--'));
19 await require('./lib/validate')(options[0], { dir: args[1], flags });