summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}