Skip to content

Commit ffffb10

Browse files
author
MarcoFalke
committed
qa: Rename cli.args to cli.options
That is the name in bitcoin-cli -help
1 parent b7450cd commit ffffb10

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/functional/test_framework/test_node.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,16 @@ class TestNodeCLI():
213213
"""Interface to bitcoin-cli for an individual node"""
214214

215215
def __init__(self, binary, datadir):
216-
self.args = []
216+
self.options = []
217217
self.binary = binary
218218
self.datadir = datadir
219219
self.input = None
220220
self.log = logging.getLogger('TestFramework.bitcoincli')
221221

222-
def __call__(self, *args, input=None):
223-
# TestNodeCLI is callable with bitcoin-cli command-line args
222+
def __call__(self, *options, input=None):
223+
# TestNodeCLI is callable with bitcoin-cli command-line options
224224
cli = TestNodeCLI(self.binary, self.datadir)
225-
cli.args = [str(arg) for arg in args]
225+
cli.options = [str(o) for o in options]
226226
cli.input = input
227227
return cli
228228

@@ -244,7 +244,7 @@ def send_cli(self, command, *args, **kwargs):
244244
pos_args = [str(arg) for arg in args]
245245
named_args = [str(key) + "=" + str(value) for (key, value) in kwargs.items()]
246246
assert not (pos_args and named_args), "Cannot use positional arguments and named arguments in the same bitcoin-cli call"
247-
p_args = [self.binary, "-datadir=" + self.datadir] + self.args
247+
p_args = [self.binary, "-datadir=" + self.datadir] + self.options
248248
if named_args:
249249
p_args += ["-named"]
250250
p_args += [command] + pos_args + named_args

0 commit comments

Comments
 (0)