#!/usr/bin/env node const program = require('commander'); const shell = require('shelljs'); const cmdList = ['publish', 'p']; program .version(require('../package').version, '-v, --version') .command('publish ', 'publish code') .alias('p') .action(cmd => { if (!cmdList.includes(cmd)) { shell.exec('hive -h'); } }) .parse(process.argv);