()
| 54 | } |
| 55 | |
| 56 | function printHelpLite() { |
| 57 | process.stdout.write( |
| 58 | `Usage: kode [options] [command] [prompt]\n\n` + |
| 59 | `Common options:\n` + |
| 60 | ` -h, --help Show full help\n` + |
| 61 | ` -v, --version Show version\n` + |
| 62 | ` -p, --print Print response and exit (non-interactive)\n` + |
| 63 | ` -c, --cwd <cwd> Set working directory\n`, |
| 64 | ) |
| 65 | } |
| 66 | |
| 67 | function run(cmd, args) { |
| 68 | const result = spawnSync(cmd, args, { |