From 58604213efbe4d275be8da6615ed77d6f3510cbe Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Fri, 23 Sep 2016 07:15:41 +0200 Subject: Add support for --all in CLI Fixes #153 --- gitlab/cli.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gitlab/cli.py') 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]: -- cgit v1.2.1