rpc help list commands
This commit is contained in:
parent
f585d8616d
commit
9aebfb74e0
@ -256,7 +256,7 @@ class RPC extends RPCBase {
|
|||||||
|
|
||||||
async help(args, _help) {
|
async help(args, _help) {
|
||||||
if (args.length === 0)
|
if (args.length === 0)
|
||||||
return 'Select a command.';
|
return `Select a command:\n${Object.keys(this.calls).join('\n')}`;
|
||||||
|
|
||||||
const json = {
|
const json = {
|
||||||
method: args[0],
|
method: args[0],
|
||||||
|
|||||||
@ -173,7 +173,7 @@ class RPC extends RPCBase {
|
|||||||
|
|
||||||
async help(args, _help) {
|
async help(args, _help) {
|
||||||
if (args.length === 0)
|
if (args.length === 0)
|
||||||
return 'Select a command.';
|
return `Select a command:\n${Object.keys(this.calls).join('\n')}`;
|
||||||
|
|
||||||
const json = {
|
const json = {
|
||||||
method: args[0],
|
method: args[0],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user