Skip to content

Commit 1f48b2c

Browse files
authored
Merge pull request #629 from hieblmi/amt-help-text
loop: adjust loop out help text
2 parents d2c5328 + e490d97 commit 1f48b2c

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

cmd/loop/loopin.go

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ var (
1919

2020
confTargetFlag = cli.Uint64Flag{
2121
Name: "conf_target",
22-
Usage: "the target number of blocks the on-chain " +
23-
"htlc broadcast by the swap client should " +
24-
"confirm within",
22+
Usage: "the target number of blocks the on-chain htlc " +
23+
"broadcast by the swap client should confirm within",
2524
}
2625

2726
labelFlag = cli.StringFlag{
@@ -33,19 +32,20 @@ var (
3332
}
3433
routeHintsFlag = cli.StringSliceFlag{
3534
Name: "route_hints",
36-
Usage: "Route hints that can each be individually used " +
37-
"to assist in reaching the invoice's destination.",
35+
Usage: "route hints that can each be individually used " +
36+
"to assist in reaching the invoice's destination",
3837
}
3938
privateFlag = cli.BoolFlag{
4039
Name: "private",
41-
Usage: "Generates and passes routehints. Should be used " +
42-
"if the connected node is only reachable via private " +
40+
Usage: "generates and passes routehints. Should be used if " +
41+
"the connected node is only reachable via private " +
4342
"channels",
4443
}
4544

4645
forceFlag = cli.BoolFlag{
47-
Name: "force, f",
48-
Usage: "Assumes yes during confirmation. Using this option will result in an immediate swap",
46+
Name: "force, f",
47+
Usage: "Assumes yes during confirmation. Using this option " +
48+
"will result in an immediate swap",
4949
}
5050

5151
loopInCommand = cli.Command{
@@ -66,8 +66,11 @@ var (
6666
`,
6767
Flags: []cli.Flag{
6868
cli.Uint64Flag{
69-
Name: "amt",
70-
Usage: "the amount in satoshis to loop in",
69+
Name: "amt",
70+
Usage: "the amount in satoshis to loop in. " +
71+
"To check for the minimum and " +
72+
"maximum amounts to loop " +
73+
"in please consult \"loop terms\"",
7174
},
7275
cli.BoolFlag{
7376
Name: "external",

cmd/loop/loopout.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var loopOutCommand = cli.Command{
4444
Usage: "the name of the account to generate a new " +
4545
"address from. You can list the names of " +
4646
"valid accounts in your backing lnd " +
47-
"instance with \"lncli wallet accounts list\".",
47+
"instance with \"lncli wallet accounts list\"",
4848
Value: "",
4949
},
5050
cli.StringFlag{
@@ -55,14 +55,16 @@ var loopOutCommand = cli.Command{
5555
Value: "p2tr",
5656
},
5757
cli.Uint64Flag{
58-
Name: "amt",
59-
Usage: "the amount in satoshis to loop out",
58+
Name: "amt",
59+
Usage: "the amount in satoshis to loop out. To check " +
60+
"for the minimum and maximum amounts to loop " +
61+
"out please consult \"loop terms\"",
6062
},
6163
cli.Uint64Flag{
6264
Name: "htlc_confs",
6365
Usage: "the number of confirmations (in blocks) " +
6466
"that we require for the htlc extended by " +
65-
"the server before we reveal the preimage.",
67+
"the server before we reveal the preimage",
6668
Value: uint64(loopdb.DefaultLoopOutHtlcConfirmations),
6769
},
6870
cli.Uint64Flag{
@@ -80,13 +82,13 @@ var loopOutCommand = cli.Command{
8082
},
8183
cli.BoolFlag{
8284
Name: "fast",
83-
Usage: "Indicate you want to swap immediately, " +
85+
Usage: "indicate you want to swap immediately, " +
8486
"paying potentially a higher fee. If not " +
8587
"set the swap server might choose to wait up " +
8688
"to 30 minutes before publishing the swap " +
8789
"HTLC on-chain, to save on its chain fees. " +
8890
"Not setting this flag therefore might " +
89-
"result in a lower swap fee.",
91+
"result in a lower swap fee",
9092
},
9193
forceFlag,
9294
labelFlag,

0 commit comments

Comments
 (0)