summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-12-24 08:28:51 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-12-24 08:28:51 +0100
commit45becb92f47c74cb6433cdb644da5e2052a337e8 (patch)
tree4fe97e535d2acc0ac9c753a1a3bcd22a44219b96 /gitlab/cli.py
parent5d88f68ddadddf98c42940a713817487058f8c17 (diff)
parent6f1fd7ea8d203b771e32393b5270a6af490b37a8 (diff)
downloadgitlab-45becb92f47c74cb6433cdb644da5e2052a337e8.tar.gz
Merge branch 'master' of github.com:gpocentek/python-gitlab
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r--gitlab/cli.py3
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)