提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
286 B

  1. #!/usr/bin/env node
  2. const colors = require('picocolors');
  3. const { program } = require('commander');
  4. const makeProgram = require('../lib/svgo/coa');
  5. makeProgram(program);
  6. program.parseAsync(process.argv).catch(error => {
  7. console.error(colors.red(error.stack));
  8. process.exit(1);
  9. });