quickfixing issue #662 to make CLI more userfriendly for inexperienced users (#663)

* 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:
renepickhardt 2018-01-19 11:09:54 +01:00 committed by Rusty Russell
parent ced486e727
commit 69260adb38
2 changed files with 4 additions and 1 deletions

View File

@ -57,6 +57,9 @@ You can start `lightningd` with the following command:
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
First you need to transfer some funds to `lightningd` so that it can open a channel:

View File

@ -67,7 +67,7 @@ int main(int argc, char *argv[])
configdir_register_opts(ctx, &lightning_dir, &rpc_filename);
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_early_parse(argc, argv, opt_log_stderr_exit);