rgb-cln/doc
Rusty Russell 237d16fdbf
doc: format markdown correctly.
There are no definition lists in Markdown, and lists get mangled if
they follow immediately: they need a line between them.

So use bullets for options, and use an indent so the text gets in the
line below.

Here's a before-and-after example:

```diff
 --- /tmp/after	2022-07-20 21:55:54.355487769 +0930
 +++ /tmp/after2	2022-07-20 21:58:17.305642576 +0930
 @@ -10,38 +10,71 @@
         lightning-cli sends commands to the lightning daemon.

  OPTIONS
 -       --lightning-dir=DIR Set the directory for the lightning daemon we're talking to; defaults to $HOME/.lightning.
 +       • --lightning-dir=DIR

 -       --conf=PATH Sets configuration file (default: lightning-dir/config ).
 +         Set the directory for the lightning daemon we're talking to; defaults to $HOME/.lightning.

 -       --network=network --mainnet --testnet --signet Sets network explicitly.
 +       • --conf=PATH

 -       --rpc-file=FILE Named pipe to use to talk to lightning daemon: default is lightning-rpc in the lightning directory.
 +         Sets configuration file (default: lightning-dir/config ).

 -       --keywords/-k Use format key=value for parameters in any order
 +       • --network=network

 -       --order/-o Follow strictly the order of parameters for the command
 +       • --mainnet

 -       --json/-J Return result in JSON format (default unless help command, or result contains a format-hint field).
 +       • --testnet

 -       --raw/-R Return raw JSON directly as lightningd replies; this can be faster for large requests.
 +       • --signet

 -       --human-readable/-H Return result in human-readable output.
 +         Sets network explicitly.

 -       --flat/-F  Return  JSON result in flattened one-per-line output, e.g. { "help": [ { "command": "check" } ] } would become
 +       • --rpc-file=FILE
 +
 +         Named pipe to use to talk to lightning daemon: default is lightning-rpc in the lightning directory.
 +
 +       • --keywords/-k
 +
 +         Use format key=value for parameters in any order
 +
 +       • --order/-o
 +
 +         Follow strictly the order of parameters for the command
 +
 +       • --json/-J
 +
 +         Return result in JSON format (default unless help command, or result contains a format-hint field).
 +
 +       • --raw/-R
 +
 +         Return raw JSON directly as lightningd replies; this can be faster for large requests.
 +
 +       • --human-readable/-H
 +
 +         Return result in human-readable output.
 +
 +       • --flat/-F
 +
 +         Return  JSON  result  in  flattened  one-per-line  output,  e.g.  {  "help":  [ { "command": "check" } ] } would become
         help[0].command=check.  This is useful for simple scripts which want to find a  specific  output  field  without  parsing
         JSON.

 -       --notifications/-N=LEVEL  If  LEVEL is 'none', then never print out notifications.  Otherwise, print out notifications of
 -       LEVEL or above (one of io, debug, info (the default), unusual or broken: they are prefixed with # .
 +       • --notifications/-N=LEVEL
 +
 +         If  LEVEL  is 'none', then never print out notifications.  Otherwise, print out notifications of LEVEL or above (one of
 +         io, debug, info (the default), unusual or broken: they are prefixed with # .
 +
 +       • --help/-h
 +
 +         Pretty-print summary of options to standard output and exit.  The format can be changed using -F, -R, -J, -H etc.
 +
 +       • --version/-V

 -       --help/-h Pretty-print summary of options to standard output and exit.  The format can be changed using -F,  -R,  -J,  -H
 -       etc.
 +         Print version number to standard output and exit.

 -       --version/-V Print version number to standard output and exit.
 +       • allow-deprecated-apis=BOOL

 -       allow-deprecated-apis=BOOL Enable deprecated options. It defaults to true, but you should set it to false when testing to
 -       ensure that an upgrade won't break your configuration.
 +         Enable deprecated options. It defaults to true, but you should set it to false when testing to ensure that  an  upgrade
 +         won't break your configuration.

  COMMANDS
         lightning-cli simply uses the JSON RPC interface to talk to lightningd, and prints the results. Thus the commands  avail‐
 @@ -60,13 +93,13 @@
         this is not encouraged.

  EXAMPLES
 -       1.     List commands
 +       1.     List commands:

 -       lightning-cli help
 +              • lightning-cli help

 -       2.     Fund a 10k sat channel using uncomfirmed outputs
 +       2.     Fund a 10k sat channel using uncomfirmed outputs:

 -       lightning-cli --keywords fundchannel id=028f...ae7d amount=10000sat minconf=0
 +              • lightning-cli --keywords fundchannel id=028f...ae7d amount=10000sat minconf=0

  BUGS
         This manpage documents how it should work, not how it does work. The pretty printing of results isn't pretty.
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-09-13 12:29:20 -05:00
..
release-notes doc: Fixed typo in the release notes 2018-06-18 12:45:00 +02:00
schemas Changelog-None 2022-08-22 11:21:19 -04:00
.gitignore Add documentation. 2015-07-18 10:46:53 +09:30
BACKUP.md use 'postgres' driver (not postgresql). Include plain url to guide, as link is broken on RTD. 2022-08-22 11:21:59 -04:00
CHANGELOG.md docs: Add configuration for the sphinx documentation generator 2019-02-18 02:42:29 +00:00
FAQ.md fix MD link where text and url are swapped 2022-08-22 11:21:19 -04:00
FUZZING.md doc: add a document about our fuzz testing integration 2020-10-21 19:34:39 +02:00
HACKING.md Change lightning-rfc to bolts post repo move 2022-05-18 10:19:16 +09:30
INSTALL.md docs: clarify the different way to build cln 2022-08-04 11:28:00 -05:00
MAKING-RELEASES.md doc/MAKING-RELEASES.md: advice on updating python package versions. 2021-07-30 19:17:47 +02:00
Makefile Makefile: replace mrkd with lowdown(1). 2022-09-13 12:29:06 -05:00
PLUGINS.md doc: improve/update lightning-plugin, PLUGINS.md and lightning-listconfigs 2022-07-10 21:09:41 -05:00
REPRODUCIBLE.md doc: Spell out the reprobuild instructions for each distro 2022-07-21 15:21:12 -05:00
STYLE.md Changelog-None 2022-08-22 11:21:19 -04:00
TOR.md doc: mention ip discovery only active when no addresses are announced 2022-07-12 13:59:46 -05:00
bitcoin.bib bitcoin.bib: Add Satoshi paper URL and date 2018-03-04 03:22:32 +01:00
commit-tx.eps Add documentation. 2015-07-18 10:46:53 +09:30
commit-tx.svg Add documentation. 2015-07-18 10:46:53 +09:30
conf.py doc: Update lightning.readthedocs.org project name after rebrand 2022-05-14 11:43:46 +09:30
deployable-lightning.lyx udpate broken link 2018-06-08 17:56:48 +02:00
deployable-lightning.pdf Regenerate PDF. 2015-11-20 06:45:19 +10:30
dual-anchor-diag1.eps Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag1.svg Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag2.eps Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag2.svg Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag3.eps Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag3.svg Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor-diag4.eps doc: fix flaw in escape transactions. 2015-07-20 14:07:25 +09:30
dual-anchor-diag4.svg doc: fix flaw in escape transactions. 2015-07-20 14:07:25 +09:30
dual-anchor-final.eps doc: fix flaw in escape transactions. 2015-07-20 14:07:25 +09:30
dual-anchor-final.svg doc: fix flaw in escape transactions. 2015-07-20 14:07:25 +09:30
dual-anchor-take2.svg Add documentation. 2015-07-18 10:46:53 +09:30
dual-anchor.svg Add documentation. 2015-07-18 10:46:53 +09:30
htlc.eps Add documentation. 2015-07-18 10:46:53 +09:30
htlc.svg Add documentation. 2015-07-18 10:46:53 +09:30
index.rst bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-addgossip.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-autocleaninvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-bkpr-channelsapy.7.md bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-bkpr-dumpincomecsv.7.md bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-bkpr-inspect.7.md bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-bkpr-listaccountevents.7.md bkpr: track channel rebalances, display in listincome 2022-08-09 11:57:18 +09:30
lightning-bkpr-listbalances.7.md bkpr: add docs, change names to 'bkpr-*' 2022-07-28 12:08:18 +09:30
lightning-bkpr-listincome.7.md bkpr: save invoice description data to the database and display it 2022-07-28 12:08:18 +09:30
lightning-check.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-checkmessage.7.md test: disable schema check of `checkmessage` with deprecated API 2022-07-19 17:55:31 +02:00
lightning-cli.1.md doc: format markdown correctly. 2022-09-13 12:29:20 -05:00
lightning-close.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-commando-rune.7.md commando-rune: show warning when creating runes with no restrictions 2022-07-29 08:46:14 -07:00
lightning-commando.7.md doc: document commando and commando-rune. 2022-07-17 08:51:02 +09:30
lightning-connect.7.md lightningd: make "is peer connected" a tristate. 2022-07-18 20:50:04 -05:00
lightning-createinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-createonion.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-datastore.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-decode.7.md doc: fix decode schema for bolt11 routehints. 2022-08-09 16:31:36 -05:00
lightning-decodepay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-deldatastore.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-delexpiredinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-delinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-delpay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-disableoffer.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-disconnect.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-emergencyrecover.7.md doc: Add documentation for new RPCs and a FIXME: in fromschema.py 2022-07-14 12:24:48 -05:00
lightning-feerates.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fetchinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundchannel.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundchannel_cancel.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundchannel_complete.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundchannel_start.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-funderupdate.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-fundpsbt.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-getinfo.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-getlog.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-getroute.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-help.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-hsmtool.8.md doc: format markdown correctly. 2022-09-13 12:29:20 -05:00
lightning-invoice.7.md doc: update usage of lightning-invoice. 2022-08-18 15:53:14 -04:00
lightning-keysend.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listchannels.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listconfigs.7.md bkpr: Add an option to set the database to something else (postgres) 2022-07-28 12:08:18 +09:30
lightning-listdatastore.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listforwards.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listfunds.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listinvoices.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listnodes.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listoffers.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listpays.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listpeers.7.md bkpr/listpeeers: add lease_fees back to funds; separate out in listpeers 2022-07-31 21:53:05 +09:30
lightning-listsendpays.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-listtransactions.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-makesecret.7.md makesecret: change info_hex arg to simply "hex" to match datastore command. 2022-07-15 22:17:58 +09:30
lightning-multifundchannel.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-multiwithdraw.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-newaddr.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-notifications.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-offer.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-offerout.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_abort.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_bump.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_init.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_signed.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-openchannel_update.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-parsefeerate.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-pay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-ping.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-plugin.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-recoverchannel.7.md doc: Add documentation for new RPCs and a FIXME: in fromschema.py 2022-07-14 12:24:48 -05:00
lightning-reserveinputs.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendcustommsg.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendonion.7.md doc: document that sendonion doesn't have to specify (but can!) the first_hop channel. 2022-08-09 16:33:24 -05:00
lightning-sendonionmessage.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendpay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-sendpsbt.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-setchannel.7.md doc: note that setchannel maxhtlc/minhtlc only apply to *forwards*. 2022-08-09 16:38:57 -05:00
lightning-setchannelfee.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-signmessage.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-signpsbt.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-staticbackup.7.md doc: Typo 2022-08-19 10:27:09 -04:00
lightning-stop.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-txdiscard.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-txprepare.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-txsend.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-unreserveinputs.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-utxopsbt.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-waitanyinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-waitblockheight.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-waitinvoice.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-waitsendpay.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightning-withdraw.7.md make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
lightningd-config.5.md doc: format markdown correctly. 2022-09-13 12:29:20 -05:00
lightningd.8.md doc: format markdown correctly. 2022-09-13 12:29:20 -05:00
ln-draft-fig1.eps doc: add figures from LN draft (thanks Joseph!). 2015-07-20 14:07:40 +09:30
ln-draft-fig2.eps doc: add figures from LN draft (thanks Joseph!). 2015-07-20 14:07:40 +09:30
undoc-flags.json plugin-funder: fix typos in option lease-fee-base-msat and funder-fuzz-percent 2022-03-01 09:38:40 +10:30