Skip to content

Commit

Permalink
interop: allow for flagged options
Browse files Browse the repository at this point in the history
  • Loading branch information
niftynei committed May 2, 2020
1 parent bb64e5a commit af576ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion glightning/tests/interop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ func LnNode(t *testing.T, testDir, dataDir string, btcPort int, name string, ext

if extraOps != nil {
for arg, val := range extraOps {
args = append(args, fmt.Sprintf("--%s=%s", arg, val))
if val == "" {
args = append(args, fmt.Sprintf("--%s", arg))
} else {
args = append(args, fmt.Sprintf("--%s=%s", arg, val))
}
}
}

Expand Down

0 comments on commit af576ff

Please sign in to comment.