#!/usr/bin/env node /*用户输入“vue”时,终端上显示参数的使用说明*/ require('commander') .version(require('../package').version) .usage(' [options]') .command('init', 'generate a new project from a template') //从模板生成一个新项目 .command('list', 'list available official templates') //列出可用的官方模板 .parse(process.argv)