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.
13 lines
302 B
13 lines
302 B
#!/usr/bin/env node
|
|
const path = require('path');
|
|
const program = require('commander');
|
|
const pkg = require(path.join(__dirname, './package.json'));
|
|
|
|
program
|
|
.version(pkg.version)
|
|
.option('-d, --dev', '本地在线开发')
|
|
.parse(process.argv);
|
|
|
|
if(program.dev) {
|
|
require('./src/cmd/dev')();
|
|
}
|
|
|