Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
CrustyCode committed Nov 11, 2024
1 parent 86a948c commit b83f30d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gptcli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ def replacer(match):
for i, (part, delimiter) in enumerate(extracted_parts):
input = input.replace(f"__EXTRACTED_PART_{i}__", f"{delimiter}{part.strip()}{delimiter}")

# def parse_args(input: str, parse_args = False) -> Tuple[str, Dict[str, Any]]:
# args = {}
# if parse_args:
# regex = r"--(\w+)(?:\s+|=)([^\s]+)"
# matches = re.findall(regex, input)
# if matches:
# args = dict(matches)
# input = input.split("--")[0].strip()
return input, args


Expand Down

0 comments on commit b83f30d

Please sign in to comment.