[cli] Fix string command parse for calls

pull/2/head
Daniel Van Der Maden 5 years ago
parent 6a260cf187
commit 2a3fdfcb75
  1. 2
      pyhmy/cli.py

@ -150,7 +150,7 @@ def _make_call_command(command):
command_toks = command command_toks = command
else: else:
all_strings = re.findall(r'"(.*?)"', command) 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 = command.replace(string, f"{_arg_prefix}_{i}")
command_toks_prefix = [el for el in command.split(" ") if el] command_toks_prefix = [el for el in command.split(" ") if el]
command_toks = [] command_toks = []

Loading…
Cancel
Save