mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
14 lines
317 B
TypeScript
14 lines
317 B
TypeScript
import * as yargs from 'yargs';
|
|
import { green, red } from 'chalk';
|
|
import { updateCommand } from './commands/update';
|
|
|
|
yargs
|
|
.usage('Usage: ql [command] <options>')
|
|
.command(updateCommand)
|
|
.fail((err) => {
|
|
console.error(`${red(err)}`);
|
|
})
|
|
.alias('h', 'help')
|
|
.showHelp()
|
|
.recommendCommands().argv;
|