File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,17 @@ command line. This is handy for values containing new lines for instance:
305305 EOF
306306 $ gitlab project create --name SuperProject --description @/tmp/description
307307
308+ It you want to explicitly pass argument starting with "@" - double it:
309+
310+ .. code-block :: console
311+
312+ $ gitlab project-tag list --project-id somenamespace/myproject
313+ ...
314+ name: @at-started-tag
315+ ...
316+ $ gitlab project-tag delete --project-id somenamespace/myproject --name '@@at-started-tag'
317+
318+
308319 Enabling shell autocompletion
309320=============================
310321
Original file line number Diff line number Diff line change @@ -272,6 +272,8 @@ def _get_parser() -> argparse.ArgumentParser:
272272
273273
274274def _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.
You can’t perform that action at this time.
0 commit comments