Skip to content

Commit 3f24609

Browse files
committed
Fix for GH-2511: Ability to escape at-prefixed parameter
1 parent 7d779c8 commit 3f24609

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ def _get_parser() -> argparse.ArgumentParser:
272272

273273

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

0 commit comments

Comments
 (0)