From eab68ba03525bfc1ae7ee46769a0368f5d393d5d Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Sat, 20 May 2023 11:48:30 -0700 Subject: [PATCH] handle quoted strings --- cli4/cli4.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli4/cli4.py b/cli4/cli4.py index ae5bdf8..291bbf1 100644 --- a/cli4/cli4.py +++ b/cli4/cli4.py @@ -104,6 +104,9 @@ def process_params_content_files(method, binary_file, args): sys.exit('cli4: %s=%s - file open failure' % (tag_string, filename)) # no need for param code below continue + elif (value_string[0] == '"' and value_string[-1] == '"') or (value_string[0] == '\'' and value_string[-1] == '\''): + # remove quotes + value = value_string[1:-1] else: value = value_string