git ssb

39+

cel / git-ssb



Tree: 9879cbb757d4bcde4e81cb784c35900a61a22bd6

Files: 9879cbb757d4bcde4e81cb784c35900a61a22bd6 / 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