Skip to content

Commit

Permalink
Fix for python-gitlabGH-2511: Ability to escape at-prefixed parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pyhedgehog committed Mar 9, 2023
1 parent 7d779c8 commit 3f24609
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitlab/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def _get_parser() -> argparse.ArgumentParser:


def _parse_value(v: Any) -> Any:
if isinstance(v, str) and v.startswith("@@"):
return v[1:]
if isinstance(v, str) and v.startswith("@"):
# If the user-provided value starts with @, we try to read the file
# path provided after @ as the real value. Exit on any error.
Expand Down

0 comments on commit 3f24609

Please sign in to comment.