rpc help list commands

This commit is contained in:
Richard Bondi 2019-02-20 14:16:00 -06:00
parent f585d8616d
commit 9aebfb74e0
No known key found for this signature in database
GPG Key ID: FB0E9BFF77E167D3
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],