summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/cli.rst8
-rw-r--r--gitlab/cli.py2
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/cli.rst b/docs/cli.rst
index 7721f54..8b79d78 100644
--- a/docs/cli.rst
+++ b/docs/cli.rst
@@ -136,12 +136,18 @@ Example:
Examples
========
-List all the projects:
+List the projects (paginated):
.. code-block:: console
$ gitlab project list
+List all the projects:
+
+.. code-block:: console
+
+ $ gitlab project list --all
+
Limit to 5 items per request, display the 1st page only
.. code-block:: console
diff --git a/gitlab/cli.py b/gitlab/cli.py
index 9f7f414..1826a7b 100644
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -379,6 +379,8 @@ def _populate_sub_parser_by_class(cls, sub_parser):
for x in cls.requiredListAttrs]
sub_parser_action.add_argument("--page", required=False)
sub_parser_action.add_argument("--per-page", required=False)
+ sub_parser_action.add_argument("--all", required=False,
+ action='store_true')
if action_name in ["get", "delete"]:
if cls not in [gitlab.CurrentUser]: