summaryrefslogtreecommitdiffstats
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-30 14:50:55 +0200
commit803459c61a2c854e712cd54a5c20a3f213d3f3df (patch)
treec3ed10f5def5d865668c5c2fd25f5f31ada4bdd4
parenta91eae7fb743a09d52abe607f5e5b7b23cf762ef (diff)
downloadpykolab-803459c61a2c854e712cd54a5c20a3f213d3f3df.tar.gz
Correct commands referring to cmd_name
-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 86f0a33..8b96d12 100644
--- a/pykolab/cli/commands.py
+++ b/pykolab/cli/commands.py
@@ -169,11 +169,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
}