mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
* making the cli more user friendly for inexperienced users #662 providing a quickfix for https://github.com/ElementsProject/lightning/issues/662 Basically I extended the ./lighting-cli --help message to at least state that one should use ./lighting-cli help, and added a hint to cli/lighting-cli help to the README Closes: #662
This commit is contained in:
committed by
Rusty Russell
parent
ced486e727
commit
69260adb38
@@ -57,6 +57,9 @@ You can start `lightningd` with the following command:
|
|||||||
lightningd/lightningd --network=testnet --log-level=debug
|
lightningd/lightningd --network=testnet --log-level=debug
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Listing all commands:
|
||||||
|
`cli/lighting-cli help` will print a table of the API and lists the following commands
|
||||||
|
|
||||||
### Opening a channel on the Bitcoin testnet
|
### Opening a channel on the Bitcoin testnet
|
||||||
|
|
||||||
First you need to transfer some funds to `lightningd` so that it can open a channel:
|
First you need to transfer some funds to `lightningd` so that it can open a channel:
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
|
|||||||
configdir_register_opts(ctx, &lightning_dir, &rpc_filename);
|
configdir_register_opts(ctx, &lightning_dir, &rpc_filename);
|
||||||
|
|
||||||
opt_register_noarg("--help|-h", opt_usage_and_exit,
|
opt_register_noarg("--help|-h", opt_usage_and_exit,
|
||||||
"<command> [<params>...]", "Show this message");
|
"<command> [<params>...]", "Show this message\t use the command help (without hyphen) to get a list of all commands");
|
||||||
opt_register_version();
|
opt_register_version();
|
||||||
|
|
||||||
opt_early_parse(argc, argv, opt_log_stderr_exit);
|
opt_early_parse(argc, argv, opt_log_stderr_exit);
|
||||||
|
|||||||
Reference in New Issue
Block a user