Skip to content

Commit 1687590

Browse files
committed
cmd: fix command descriptions
1 parent 38d7401 commit 1687590

File tree

1 file changed

+25
-38
lines changed

1 file changed

+25
-38
lines changed

cmd/loop/staticaddr.go

Lines changed: 25 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var listUnspentCommand = cli.Command{
8686
ShortName: "l",
8787
Usage: "List unspent static address outputs.",
8888
Description: `
89-
List all unspent static address outputs.
89+
List all unspent static address outputs.
9090
`,
9191
Flags: []cli.Flag{
9292
cli.IntFlag{
@@ -134,8 +134,8 @@ var withdrawalCommand = cli.Command{
134134
ShortName: "w",
135135
Usage: "Withdraw from static address deposits.",
136136
Description: `
137-
Withdraws from all or selected static address deposits by sweeping them
138-
back to our lnd wallet.
137+
Withdraws from all or selected static address deposits by sweeping them
138+
to the internal wallet or an external address.
139139
`,
140140
Flags: []cli.Flag{
141141
cli.StringSliceFlag{
@@ -226,8 +226,9 @@ func withdraw(ctx *cli.Context) error {
226226
}
227227

228228
var listDepositsCommand = cli.Command{
229-
Name: "listdeposits",
230-
Usage: "Display a summary of static address related information.",
229+
Name: "listdeposits",
230+
Usage: "Displays static address deposits. A filter can be applied to " +
231+
"only show deposits in a specific state.",
231232
Description: `
232233
`,
233234
Flags: []cli.Flag{
@@ -247,39 +248,6 @@ var listDepositsCommand = cli.Command{
247248
Action: listDeposits,
248249
}
249250

250-
var listStaticAddressSwapsCommand = cli.Command{
251-
Name: "listswaps",
252-
Usage: "Display a summary of static address related information.",
253-
Description: `
254-
`,
255-
Action: listStaticAddressSwaps,
256-
}
257-
258-
var summaryCommand = cli.Command{
259-
Name: "summary",
260-
ShortName: "s",
261-
Usage: "Display a summary of static address related information.",
262-
Description: `
263-
Displays various static address related information like deposits,
264-
withdrawals and statistics. The information can be filtered by state.
265-
`,
266-
Flags: []cli.Flag{
267-
cli.StringFlag{
268-
Name: "filter",
269-
Usage: "specify a filter to only display deposits in " +
270-
"the specified state. Leaving out the filter " +
271-
"returns all deposits.\nThe state can be one " +
272-
"of the following: \n" +
273-
"deposited\nwithdrawing\nwithdrawn\n" +
274-
"looping_in\nlooped_in\n" +
275-
"publish_expired_deposit\n" +
276-
"sweep_htlc_timeout\nhtlc_timeout_swept\n" +
277-
"wait_for_expiry_sweep\nexpired\nfailed\n.",
278-
},
279-
},
280-
Action: summary,
281-
}
282-
283251
func listDeposits(ctx *cli.Context) error {
284252
ctxb := context.Background()
285253
if ctx.NArg() > 0 {
@@ -345,6 +313,14 @@ func listDeposits(ctx *cli.Context) error {
345313
return nil
346314
}
347315

316+
var listStaticAddressSwapsCommand = cli.Command{
317+
Name: "listswaps",
318+
Usage: "Shows a list of finalized static address swaps.",
319+
Description: `
320+
`,
321+
Action: listStaticAddressSwaps,
322+
}
323+
348324
func listStaticAddressSwaps(ctx *cli.Context) error {
349325
ctxb := context.Background()
350326
if ctx.NArg() > 0 {
@@ -369,6 +345,17 @@ func listStaticAddressSwaps(ctx *cli.Context) error {
369345
return nil
370346
}
371347

348+
var summaryCommand = cli.Command{
349+
Name: "summary",
350+
ShortName: "s",
351+
Usage: "Display a summary of static address related information.",
352+
Description: `
353+
Displays various static address related information about deposits,
354+
withdrawals and swaps.
355+
`,
356+
Action: summary,
357+
}
358+
372359
func summary(ctx *cli.Context) error {
373360
ctxb := context.Background()
374361
if ctx.NArg() > 0 {

0 commit comments

Comments
 (0)