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:
305
305
EOF
306
306
$ gitlab project create --name SuperProject --description @/tmp/description
307
307
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
+
308
319
Enabling shell autocompletion
309
320
=============================
310
321
Original file line number Diff line number Diff line change @@ -272,6 +272,8 @@ def _get_parser() -> argparse.ArgumentParser:
272
272
273
273
274
274
def _parse_value (v : Any ) -> Any :
275
+ if isinstance (v , str ) and v .startswith ("@@" ):
276
+ return v [1 :]
275
277
if isinstance (v , str ) and v .startswith ("@" ):
276
278
# If the user-provided value starts with @, we try to read the file
277
279
# path provided after @ as the real value. Exit on any error.
You can’t perform that action at this time.
0 commit comments