()
| 74 | var cli = {}; |
| 75 | |
| 76 | function runCommand() { |
| 77 | var yargs = require('yargs'); |
| 78 | h.width = yargs.terminalWidth(); |
| 79 | yargs.commandDir('commands') |
| 80 | .completion() |
| 81 | .help('h') |
| 82 | .alias('h', 'help') |
| 83 | .version(false) |
| 84 | .epilog('Seek more help at https://skygragon.github.io/leetcode-cli/commands') |
| 85 | .wrap(Math.min(h.width, 120)) |
| 86 | .argv; |
| 87 | } |
| 88 | |
| 89 | cli.run = function() { |
| 90 | process.stdout.on('error', function(e) { |