git ssb

39+

cel / git-ssb



Tree: 403bed97ce3c8f93b87fa33b014b7f20e5e5670d

Files: 403bed97ce3c8f93b87fa33b014b7f20e5e5670d / lib / help.js

397 bytesRaw
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}
20

Built with git-ssb-web