cmd/loop: fix bug in optional swep addr parsing

In this commit we fix a recently introduce bug (when the addr kwarg was
added) that caused all commands to fail with an error. The issue was we
didn't advance the args linked list to the final element.
v0.1-alpha
Olaoluwa Osuntokun 5 years ago
parent 1a9c7523a3
commit 91c0e92c4a
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -50,6 +50,7 @@ func loopOut(ctx *cli.Context) error {
}
var destAddr string
args = args.Tail()
switch {
case ctx.IsSet("addr"):
destAddr = ctx.String("addr")

Loading…
Cancel
Save