Merge pull request #705 from rsbondi/rpc-help

rpc help list commands
This commit is contained in:
Braydon Fuller 2019-03-04 11:12:33 -08:00
commit c1f5975fb1
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ class RPC extends RPCBase {
async help(args, _help) {
if (args.length === 0)
return 'Select a command.';
return `Select a command:\n${Object.keys(this.calls).join('\n')}`;
const json = {
method: args[0],

View File

@ -173,7 +173,7 @@ class RPC extends RPCBase {
async help(args, _help) {
if (args.length === 0)
return 'Select a command.';
return `Select a command:\n${Object.keys(this.calls).join('\n')}`;
const json = {
method: args[0],