#! /usr/bin/env node const program = require('commander') const { getPkgVersion } = require('../dist/util') program .version(getPkgVersion(), '-v, --version') .usage(' [options]') .command('init [projectName]', '创建默认项目') .command('build', 'Build a project with options') .command('update', '更新Sbyerh') .command('doctor', 'Diagnose syberh project') .command('simulator', 'Start the simulator') .command('install', 'Install sdk and target') .parse(process.argv)