UNPKG

imq-cli

Version:

Command Line Interface for IMQ

21 lines 624 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const yargs = require("yargs"); const lib_1 = require("./lib"); yargs .usage('IMQ Command Line Interface' + `\nVersion: ${lib_1.VERSION}` + '\n\nUsage: $0 <command>') .version(lib_1.VERSION) .commandDir('src') .demandCommand() .wrap(yargs.terminalWidth()) .help() .argv; const commands = yargs.getCommandInstance().getCommands(); if (commands.length && !(yargs.argv._[0] && ~commands.indexOf(yargs.argv._[0]))) { yargs.showHelp(); process.exit(1); } //# sourceMappingURL=index.js.map