summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab')
-rwxr-xr-xgitlab5
1 files changed, 4 insertions, 1 deletions
diff --git a/gitlab b/gitlab
index 5feef55..e02f9c2 100755
--- a/gitlab
+++ b/gitlab
@@ -81,8 +81,11 @@ except:
if action not in ['get', 'list', 'update', 'create', 'delete']:
die("Unknown action: %s" % action)
+def whatToCls(what):
+ return "".join([s.capitalize() for s in what.split("-")])
+
try:
- cls = gitlab.__dict__[what]
+ cls = gitlab.__dict__[whatToCls(what)]
except:
die("Unknown object: %s" % what)