mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
pylightning: help() accepts an argument.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -241,11 +241,14 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("decodepay", payload)
|
||||
|
||||
def help(self):
|
||||
def help(self, command=None):
|
||||
"""
|
||||
Show available commands
|
||||
Show available commands, or just {command} if supplied.
|
||||
"""
|
||||
return self.call("help")
|
||||
payload = {
|
||||
"command": command,
|
||||
}
|
||||
return self.call("help", payload)
|
||||
|
||||
def stop(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user