#!/usr/bin/env node

const program = require("commander");
const { write } = require("./write");
const { extract } = require("./extract");

program
  .version('0.0.6')
  .usage("vuers <files> [options]")
  .arguments("[files...]")
  .option("-o --output <output>", "The output PO file")
  .action((files, options) => {
    const output = options.output;
    const extracted = extract(files);
    write(extracted, output);
  })
  .parse(process.argv);
