Skip to content

Commit

Permalink
handle quoted strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed May 20, 2023
1 parent 9ae8cba commit eab68ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli4/cli4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eab68ba

Please sign in to comment.