Files: 873ff04e1eef1fb6e86d5e48cbaf0da8e8ac7dfe / lib / help.js
245 bytesRaw
1 | var cmds = require('./cmds') |
2 | var fs = require('fs') |
3 | |
4 | module.exports = function (argv) { |
5 | var cmd = argv._[0] |
6 | var file = cmds.getCmd(cmd, 'txt') |
7 | if (!file) throw `No help for command '${cmd}'` |
8 | process.stdout.write(fs.readFileSync(file)) |
9 | } |
10 |
Built with git-ssb-web