Browse Source

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
ppa-0.6.1
renepickhardt 7 years ago
committed by Rusty Russell
parent
commit
69260adb38
  1. 3
      README.md
  2. 2
      cli/lightning-cli.c

3
README.md

@ -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:

2
cli/lightning-cli.c

@ -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);

Loading…
Cancel
Save