diff options
author | Thomas de Grenier de Latour <thomas.degrenierdelatour@orange.com> | 2022-01-25 23:18:05 +0100 |
---|---|---|
committer | Thomas de Grenier de Latour <thomas.degrenierdelatour@orange.com> | 2022-01-25 23:18:05 +0100 |
commit | d493a5e8685018daa69c92e5942cbe763e5dac62 (patch) | |
tree | d5276a6e6c3b027ea619926919e7e6dade199743 /gitlab/v4/cli.py | |
parent | bbb7df526f4375c438be97d8cfa0d9ea9d604e7d (diff) | |
download | gitlab-d493a5e8685018daa69c92e5942cbe763e5dac62.tar.gz |
fix(cli): make 'per_page' and 'page' type explicit
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 7d8eab7..6830b08 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -218,8 +218,8 @@ def _populate_sub_parser_by_class( f"--{x.replace('_', '-')}", required=False ) - sub_parser_action.add_argument("--page", required=False) - sub_parser_action.add_argument("--per-page", required=False) + sub_parser_action.add_argument("--page", required=False, type=int) + sub_parser_action.add_argument("--per-page", required=False, type=int) sub_parser_action.add_argument("--all", required=False, action="store_true") if action_name == "delete": |