#!/usr/bin/env node import * as yargs from 'yargs'; import { runUpgrade } from './upgrade/upgradeRunner'; const argv = yargs .usage('Usage: $0 [-p tsconfig.json][-u upgrade] action(s)') .options({ u: { type: 'boolean' }, p: { type: 'string' } }) .describe({ u: 'Run upgrader', h: 'Display this help message' }) .boolean(['u', 'h']) .help() .alias('h', 'help').argv; if (argv.u) { // tslint:disable-next-line: no-floating-promises runUpgrade(argv._, argv.p); } else { yargs.showHelp(); }