diff options
author | PyHedgehog <pyhedgehog@users.noreply.github.com> | 2023-03-11 13:10:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 10:10:42 +0000 |
commit | 4f7c78436e62bfd21745c5289117e03ed896bc66 (patch) | |
tree | c62e51cf93a6770d9b876107a4ad41dc927c065f /gitlab/cli.py | |
parent | 7d779c85ffe09623c5d885b5a429b0242ad82f93 (diff) | |
download | gitlab-4f7c78436e62bfd21745c5289117e03ed896bc66.tar.gz |
fix(cli): add ability to escape at-prefixed parameter (#2513)
* fix(cli): Add ability to escape at-prefixed parameter (#2511)
---------
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index c124e74..4efb3b2 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -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. |