summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-13 17:07:29 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-13 17:07:29 +0100
commit48d6241fd3dd8c3b776677c73837636a4d74003f (patch)
treefd57cb3b3b63cbc024512b6aae1490acd5da562c /pykolab
parenta6ec33719ebd910aaf826132489ce014af562923 (diff)
downloadpykolab-48d6241fd3dd8c3b776677c73837636a4d74003f.tar.gz
Correct commands referring to cmd_name
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/cli/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/cli/commands.py b/pykolab/cli/commands.py
index 9ea8da9..045bc15 100644
--- a/pykolab/cli/commands.py
+++ b/pykolab/cli/commands.py
@@ -165,11 +165,13 @@ def register(cmd_name, func, group=None, description=None, aliases=[]):
if callable(func):
if group == None:
commands[cmd_name] = {
+ 'cmd_name': cmd_name,
'function': func,
'description': description
}
else:
commands[group][cmd_name] = {
+ 'cmd_name': cmd_name,
'function': func,
'description': description
}