summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-30 16:38:16 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-30 16:38:16 +0100
commit3711f198a4e02144d9d49b68420d24afc9f4f957 (patch)
treead6edd6bf91ac4196912ba3aecc59ce5b5a1bbbb /gitlab/cli.py
parentc579c8081af787945c24c75b9ed85b2f0d8bc6b9 (diff)
downloadgitlab-3711f198a4e02144d9d49b68420d24afc9f4f957.tar.gz
Add sudo support
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r--gitlab/cli.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py
index 8ac8e45..7843423 100644
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -73,6 +73,7 @@ def _populate_sub_parser_by_class(cls, sub_parser):
[sub_parser_action.add_argument("--%s" % x.replace('_', '-'),
required=True)
for x in cls.requiredUrlAttrs]
+ sub_parser_action.add_argument("--sudo", required=False)
if action_name == LIST:
[sub_parser_action.add_argument("--%s" % x.replace('_', '-'),