UNPKG

397 BJavaScriptView Raw
1var cmds = require('./cmds')
2var fs = require('fs')
3
4exports.help = `
5Usage: git ssb help <command>
6
7 Get help about a git-ssb command
8
9Options:
10 command Command to get help with
11`
12
13exports.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}