summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/cli.py1
-rw-r--r--gitlab/objects.py1
2 files changed, 2 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('_', '-'),
diff --git a/gitlab/objects.py b/gitlab/objects.py
index a7105d2..28530a0 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -227,6 +227,7 @@ class GitlabObject(object):
else:
attributes = itertools.chain(self.requiredCreateAttrs,
self.optionalCreateAttrs)
+ attributes = list(attributes) + ['sudo', 'page', 'per_page']
for attribute in attributes:
if hasattr(self, attribute):
data[attribute] = getattr(self, attribute)