From 2a3fdfcb757fb6b16d804911cad573b507eaf98d Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Wed, 8 Apr 2020 02:16:27 -0700 Subject: [PATCH] [cli] Fix string command parse for calls --- pyhmy/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhmy/cli.py b/pyhmy/cli.py index 4c35864..22be2ed 100644 --- a/pyhmy/cli.py +++ b/pyhmy/cli.py @@ -150,7 +150,7 @@ def _make_call_command(command): command_toks = command else: all_strings = re.findall(r'"(.*?)"', command) - for i, string in all_strings: + for i, string in enumerate(all_strings): command = command.replace(string, f"{_arg_prefix}_{i}") command_toks_prefix = [el for el in command.split(" ") if el] command_toks = []