Browse Source
The check command allows us to check the parameters of a command without running it. Example: lightning-cli check invoice 234 foo desc We do this by removing the "command_to_check" parameter and then using the remaining parameters as-is. I chose the parameter name "command_to_check" instead of just "command" because it must be unique to all other parameter names for all other commands. Why? Because it may be ambiguous in the case of a json object, where the parameters are not necessary ordered. We don't know which one is the command to check and which one is a parameter. Signed-off-by: Mark Beckwith <wythe@intrig.com>plugin-6
Mark Beckwith
6 years ago
committed by
Rusty Russell
4 changed files with 77 additions and 2 deletions
Loading…
Reference in new issue