diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-12-24 08:28:51 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-12-24 08:28:51 +0100 |
commit | 45becb92f47c74cb6433cdb644da5e2052a337e8 (patch) | |
tree | 4fe97e535d2acc0ac9c753a1a3bcd22a44219b96 /gitlab/cli.py | |
parent | 5d88f68ddadddf98c42940a713817487058f8c17 (diff) | |
parent | 6f1fd7ea8d203b771e32393b5270a6af490b37a8 (diff) | |
download | gitlab-45becb92f47c74cb6433cdb644da5e2052a337e8.tar.gz |
Merge branch 'master' of github.com:gpocentek/python-gitlab
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index a1109b6..1f82498 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -21,6 +21,7 @@ from __future__ import division from __future__ import absolute_import import argparse import inspect +import operator import re import sys @@ -256,7 +257,7 @@ def main(): classes.append(cls) except AttributeError: pass - classes.sort() + classes.sort(key=operator.attrgetter("__name__")) for cls in classes: arg_name = clsToWhat(cls) |