1 | var cmds = require('./cmds')
|
2 | var fs = require('fs')
|
3 |
|
4 | exports.help = `
|
5 | Usage: git ssb help <command>
|
6 |
|
7 | Get help about a git-ssb command
|
8 |
|
9 | Options:
|
10 | command Command to get help with
|
11 | `
|
12 |
|
13 | exports.fn = function (argv) {
|
14 | var cmd = argv._[0]
|
15 | var mod = cmds.getCmd(cmd)
|
16 | var help = mod && mod.help
|
17 | if (typeof help !== 'string') throw `No help for command '${cmd}'`
|
18 | process.stdout.write(help)
|
19 | }
|