mirror of
https://github.com/tiktok/sparo.git
synced 2024-12-11 16:21:19 -05:00
20 lines
374 B
JavaScript
20 lines
374 B
JavaScript
const yargs = require('yargs');
|
|
const { generate } = require('./generate');
|
|
|
|
const args = yargs(process.argv.slice(2))
|
|
.version(false)
|
|
.option('project', {
|
|
demandOption: true,
|
|
describe: 'A rush project name',
|
|
type: 'string'
|
|
})
|
|
.option('version', {
|
|
demandOption: true,
|
|
describe: "Version number",
|
|
type: 'string'
|
|
}).argv;
|
|
|
|
generate(args);
|
|
|
|
|
|
|