From bb820de2faa7b1907544901ae65e27833e65f91f Mon Sep 17 00:00:00 2001 From: l-n-s Date: Mon, 5 Mar 2018 18:44:11 +0000 Subject: [PATCH] i2pdctl: s/arguments/parameters (#43) --- scripts/i2pdctl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/i2pdctl b/scripts/i2pdctl index cf07f22..1119a44 100755 --- a/scripts/i2pdctl +++ b/scripts/i2pdctl @@ -92,12 +92,12 @@ class I2pdctl(object): def execute(self, args): """Execute raw method""" try: - arguments = json.loads(args.arguments) + parameters = json.loads(args.parameters) except json.decoder.JSONDecodeError: - print("Error: arguments should be a valid JSON object") + print("Error: parameters should be a valid JSON object") return - resp = self.ctl.request(args.method, arguments) + resp = self.ctl.request(args.method, parameters) if args.json_output: print(resp.text)