From 9aebfb74e04de6966ae8a9f9942880337066308a Mon Sep 17 00:00:00 2001 From: Richard Bondi Date: Wed, 20 Feb 2019 14:16:00 -0600 Subject: [PATCH] rpc help list commands --- lib/node/rpc.js | 2 +- lib/wallet/rpc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node/rpc.js b/lib/node/rpc.js index b9a19ddb..d86fb21d 100644 --- a/lib/node/rpc.js +++ b/lib/node/rpc.js @@ -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], diff --git a/lib/wallet/rpc.js b/lib/wallet/rpc.js index 80deaa9e..b6020c02 100644 --- a/lib/wallet/rpc.js +++ b/lib/wallet/rpc.js @@ -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],