summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitlab/cli.py3
-rw-r--r--gitlab/v4/cli.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py
index 91a7dde..4d41b83 100644
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -78,7 +78,8 @@ def cls_to_what(cls):
def _get_base_parser(add_help=True):
- parser = argparse.ArgumentParser(add_help=add_help,
+ parser = argparse.ArgumentParser(
+ add_help=add_help,
description="GitLab API Command Line Interface")
parser.add_argument("--version", help="Display the version.",
action="store_true")
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py
index 7199e83..bceba33 100644
--- a/gitlab/v4/cli.py
+++ b/gitlab/v4/cli.py
@@ -240,7 +240,8 @@ def extend_parser(parser):
arg_name = cli.cls_to_what(cls)
object_group = subparsers.add_parser(arg_name)
- object_subparsers = object_group.add_subparsers(title='action',
+ object_subparsers = object_group.add_subparsers(
+ title='action',
dest='action', help="Action to execute.")
_populate_sub_parser_by_class(cls, object_subparsers)
object_subparsers.required = True