We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f089ff3 commit b744afaCopy full SHA for b744afa
cmd/loop/loopout.go
@@ -25,6 +25,12 @@ var loopOutCommand = cli.Command{
25
Name: "channel",
26
Usage: "the 8-byte compact channel ID of the channel to loop out",
27
},
28
+ cli.StringFlag{
29
+ Name: "addr",
30
+ Usage: "the optional address that the looped out funds " +
31
+ "should be sent to, if let blank the funds " +
32
+ "will go to lnd's wallet",
33
+ },
34
35
Action: loopOut,
36
}
@@ -44,8 +50,10 @@ func loopOut(ctx *cli.Context) error {
44
50
45
51
46
52
var destAddr string
47
- args = args.Tail()
48
- if args.Present() {
53
+ switch {
54
+ case ctx.IsSet("addr"):
55
+ destAddr = ctx.String("addr")
56
+ case args.Present():
49
57
destAddr = args.First()
58
59
0 commit comments