Skip to content

Commit 3abede2

Browse files
committed
cmd/loop: fix openchannel help typo
Correct the duplicated article in the static openchannel help text so the command summary reads cleanly. Refresh the recorded help fixtures that surface that summary directly, including the dedicated openchannel help output and the parent static command listing.
1 parent ca1ce69 commit 3abede2

5 files changed

Lines changed: 6 additions & 14 deletions

File tree

cmd/loop/openchannel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var (
2424

2525
var openChannelCommand = &cli.Command{
2626
Name: "openchannel",
27-
Usage: "Open a channel to a an existing peer.",
27+
Usage: "Open a channel to an existing peer.",
2828
Description: `
2929
Attempt to open a new channel to an existing peer with the key
3030
node-key.

cmd/loop/testdata/sessions/static-loop-in/04_loop-static.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,8 @@
3232
" withdraw, w Withdraw from static address deposits.\n",
3333
" summary, s Display a summary of static address related information.\n",
3434
" in Loop in funds from static address deposits.\n",
35-
" openchannel Open a channel to a an existing peer.\n",
36-
"\n"
37-
]
38-
}
39-
},
40-
{
41-
"time_ms": 2,
42-
"kind": "stdout",
43-
"data": {
44-
"lines": [
35+
" openchannel Open a channel to an existing peer.\n",
36+
"\n",
4537
"OPTIONS:\n",
4638
" --help, -h show help\n"
4739
]

cmd/loop/testdata/sessions/static-openchannel/01_loop-static-openchannel-help.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"data": {
2626
"lines": [
2727
"NAME:\n",
28-
" loop static openchannel - Open a channel to a an existing peer.\n",
28+
" loop static openchannel - Open a channel to an existing peer.\n",
2929
"\n",
3030
"USAGE:\n",
3131
" loop static openchannel [options]\n",

docs/loop.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ Loop in funds from static address deposits.
590590

591591
.SS openchannel
592592
.PP
593-
Open a channel to a an existing peer.
593+
Open a channel to an existing peer.
594594

595595
.PP
596596
\fB--base_fee_msat\fP="": the base fee in milli-satoshis that will be charged for each forwarded HTLC, regardless of payment size (default: 0)

docs/loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ The following flags are supported:
688688

689689
### `static openchannel` subcommand
690690

691-
Open a channel to a an existing peer.
691+
Open a channel to an existing peer.
692692

693693
Attempt to open a new channel to an existing peer with the key node-key. The channel will be initialized with local-amt satoshis locally and push-amt satoshis for the remote node. Note that the push-amt is deducted from the specified local-amt which implies that the local-amt must be greater than the push-amt. Also note that specifying push-amt means you give that amount to the remote node as part of the channel opening. Once the channel is open, a channelPoint (txid:vout) of the funding output is returned. If the remote peer supports the option upfront shutdown feature bit (query listpeers to see their supported feature bits), an address to enforce payout of funds on cooperative close can optionally be provided. Note that if you set this value, you will not be able to cooperatively close out to another address. One can also specify a short string memo to record some useful information about the channel using the --memo argument. This is stored locally only, and is purely for reference. It has no bearing on the channel's operation. Max allowed length is 500 characters.
694694

0 commit comments

Comments
 (0)