diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-03-11 19:58:57 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-03-11 19:58:57 +0100 |
commit | 9cb6bbedd350a2241113fe1d731b4cfe56c19d4f (patch) | |
tree | d0e85ccbc84f463dcfbb9bd89d803ea44f315df8 | |
parent | cb8ca6516befa4d3421cf734b4c72ec75ddeb654 (diff) | |
download | gitlab-9cb6bbedd350a2241113fe1d731b4cfe56c19d4f.tar.gz |
pep8 fix
-rw-r--r-- | gitlab/cli.py | 3 | ||||
-rw-r--r-- | gitlab/v4/cli.py | 3 |
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 |